:root {
    /* Inheriting from main theme */
    --primary-color: #ff004f;
    --bg-color: #000000;
    --second-bg-color: #111111;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--body-font);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 0, 79, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 255, 0.05) 0%, transparent 20%);
    overflow: hidden;
}

/* Background Animation */
.background-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    animation: move 10s infinite alternate;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    border-radius: 50%;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: #00ffff;
    border-radius: 50%;
    animation-delay: -5s;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

/* Auth Container */
.container {
    position: relative;
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 40px;
    overflow: hidden;
    transition: height 0.3s ease;
}

.form-box {
    width: 100%;
    transition: 0.3s ease;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-family: var(--header-font);
    margin-bottom: 10px;
    display: inline-block;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-img-small {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #000;
    border: 2px solid var(--primary-color);
    vertical-align: middle;
}

.header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: 0.3s;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.input-group input:focus~i {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background: #e6004c;
    box-shadow: 0 0 15px var(--primary-color);
}

.toggle-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.toggle-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.toggle-link a:hover {
    text-decoration: underline;
}

.forgot-pass {
    display: block;
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: -10px;
    margin-bottom: 20px;
    text-decoration: none;
    cursor: pointer;
}

.forgot-pass:hover {
    color: var(--primary-color);
}

/* Forms visibility logic */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Notification (Fake Email) */
.notification {
    position: fixed;
    top: 20px;
    right: -400px;
    width: 350px;
    background: #1e1e1e;
    border-left: 5px solid var(--primary-color);
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    z-index: 1000;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.notification.show {
    right: 20px;
}

.notif-icon {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.notif-content h4 {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #fff;
}

.notif-content p {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
}

.notif-close {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #666;
    cursor: pointer;
}

/* =====================================================
   RESPONSIVE DESIGN - All Devices
===================================================== */

/* Mobile - Small devices (576px and down) */
@media (max-width: 576px) {
    body {
        padding: 15px;
        align-items: flex-start;
        padding-top: 30px;
    }

    .container {
        padding: 25px 20px;
        border-radius: 15px;
        max-width: 100%;
    }

    .header h2 {
        font-size: 1.3rem;
    }

    .header p {
        font-size: 0.85rem;
    }

    .logo-img-small {
        height: 45px;
        width: 45px;
    }

    .logo span {
        font-size: 1rem !important;
    }

    .input-group input {
        padding: 14px 15px 14px 45px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .btn {
        padding: 14px;
        font-size: 1rem;
        min-height: 48px;
        /* Touch-friendly */
    }

    .shape-1 {
        width: 250px;
        height: 250px;
    }

    .shape-2 {
        width: 200px;
        height: 200px;
    }

    .notification {
        width: calc(100% - 40px);
        right: -100%;
    }

    .notification.show {
        right: 20px;
    }

    .toggle-link {
        font-size: 0.85rem;
    }

    .forgot-pass {
        font-size: 0.8rem;
    }
}

/* Tablets - Medium devices (577px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .container {
        max-width: 420px;
        padding: 35px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .input-group input {
        padding: 15px 15px 15px 48px;
        min-height: 50px;
    }

    .btn {
        padding: 15px;
        min-height: 52px;
    }

    .toggle-link a,
    .forgot-pass {
        padding: 5px 0;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .container {
        padding: 20px;
    }

    .header {
        margin-bottom: 15px;
    }

    .input-group {
        margin-bottom: 12px;
    }
}