/* Registration Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: clip;
}

.auth-container {
    display: flex;
    min-height: 100vh;
    background-color: white;
    position: relative;
}

/* Back Button */
.btn-back {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateX(-5px);
}

/* Image Side */
.auth-image-side {
    flex: 1;
    position: relative;
    background-color: #1a1a1a;
    overflow: hidden;
}

.auth-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.auth-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
}

.overlay-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
}

.overlay-content p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 500px;
}

/* Form Side */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: white;
}

.form-wrapper {
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-logo img {
    height: 80px !important;
    width: auto !important;
    object-fit: contain;
    margin-bottom: 24px;
}

.auth-form-side h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.subtitle {
    color: #64748b;
    margin-bottom: 40px;
}

/* Inputs */
.form-group {
    margin-bottom: 24px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0px;
    /* Reset because label-row handles spacing */
}

.forgot-password {
    font-size: 13px;
    color: #ff6b81;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.3s ease;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    /* Fix padding issue */
}

.input-with-icon input:focus {
    border-color: #ff6b81;
    box-shadow: 0 0 0 4px rgba(255, 107, 129, 0.1);
}

.input-with-icon input:focus+.input-icon {
    color: #ff6b81;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: #ff6b81;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #e84a64;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 129, 0.2);
}

/* Divider */
.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 16px;
    color: #94a3b8;
    font-size: 14px;
    position: relative;
}

/* Social Buttons */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-social {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-social:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Footer Link */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: #64748b;
}

.auth-footer a {
    color: #ff6b81;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #e84a64;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-image-side {
        display: none;
    }

    .btn-back {
        color: #1a1a1a;
        background: #f1f5f9;
        backdrop-filter: none;
    }

    .btn-back:hover {
        background: #e2e8f0;
    }
}

@media (max-width: 768px) {
    .auth-form-side {
        padding: 80px 24px 40px; /* Space for the absolute back button */
    }

    .btn-back {
        top: 16px;
        left: 16px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .auth-form-side h2 {
        font-size: 26px;
    }

    .subtitle {
        margin-bottom: 24px;
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .input-with-icon input {
        padding: 12px 16px 12px 44px;
        font-size: 15px;
        border-radius: 10px;
    }

    .btn-submit {
        padding: 14px;
        font-size: 15px;
        border-radius: 10px;
    }

    .divider {
        margin: 20px 0;
    }

    .divider span {
        font-size: 13px;
        padding: 0 10px;
    }

    .social-login {
        gap: 12px;
    }

    .btn-social {
        padding: 10px;
        font-size: 14px;
        border-radius: 10px;
    }

    .auth-footer {
        margin-top: 20px;
        font-size: 14px;
    }

    .brand-logo img {
        height: 60px !important;
        margin-bottom: 16px;
    }
}

@media (max-width: 375px) {
    .auth-form-side {
        padding: 70px 15px 30px;
    }

    .btn-social {
        padding: 8px 6px;
        font-size: 13px;
        gap: 6px;
    }

    .auth-form-side h2 {
        font-size: 22px;
    }
}

/* Password Visibility Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 5;
}

.password-toggle:hover {
    color: #ff6b81;
}

.input-with-icon input[type="password"],
.input-with-icon input[type="text"].has-password-toggle {
    padding-right: 48px;
}