/* 
 * Premium Sign Up Page Styles
 * Brand: ZEST Eyewear
 * Accent Color: #f05a27
 */

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

:root {
    --zest-accent: #f05a27;
    --zest-accent-hover: #d94a1d;
    --text-dark: #2d2d2d;
    --text-muted: #888888;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --input-border: #e0e0e0;
    --input-focus-glow: rgba(240, 90, 39, 0.15);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 50px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Split Screen Layout --- */
.signup-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.signup-left {
    flex: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url('../image/login.png') center/cover no-repeat;
    background-color: #1a1a1a;
    /* fallback */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem;
    color: var(--white);
    overflow: hidden;
}

/* Add a decorative shape/glass effect to left side */
.signup-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(240, 90, 39, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.signup-left-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.brand-logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: var(--white);
    text-decoration: none;
}

.brand-logo span {
    color: var(--zest-accent);
}

.brand-logo:hover {
    color: var(--white);
    text-decoration: none;
}

.welcome-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.welcome-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 400px;
}

/* --- Right Side: Form Container --- */
.signup-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--bg-light);
}

.signup-card {
    background: var(--white);
    width: 100%;
    max-width: 550px;
    padding: 2.2rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    animation: slideInRight 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Form Controls --- */
.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    height: 55px;
    padding: 20px 20px 5px;
    /* Space for inner floating label */
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: var(--white);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: none !important;
    margin: 0;
}

.form-control:focus {
    border-color: var(--zest-accent);
    box-shadow: 0 0 0 4px var(--input-focus-glow) !important;
    outline: none;
}

.form-control::placeholder {
    color: #aaa;
    font-weight: 300;
}

.floating-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #aaa;
    pointer-events: none;
    transition: var(--transition);
    padding: 0;
    margin: 0;
    z-index: 2;
    background: transparent;
}

.form-control:focus~.floating-label,
.form-control:not(:placeholder-shown)~.floating-label {
    top: 15px;
    font-size: 0.75rem;
    color: var(--zest-accent);
    font-weight: 500;
}

/* Password Field */
.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    z-index: 3;
    margin: 0;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--zest-accent);
}

/* Gender Selection */
.gender-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.custom-radio {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-mark {
    height: 20px;
    width: 20px;
    background-color: var(--white);
    border: 2px solid var(--input-border);
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    position: relative;
    transition: var(--transition);
}

.custom-radio:hover input~.radio-mark {
    border-color: var(--zest-accent);
}

.custom-radio input:checked~.radio-mark {
    border-color: var(--zest-accent);
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--zest-accent);
}

.custom-radio input:checked~.radio-mark:after {
    display: block;
}

/* Checkboxes */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-mark {
    height: 18px;
    width: 18px;
    background-color: var(--white);
    border: 2px solid var(--input-border);
    border-radius: 4px;
    display: inline-block;
    margin-right: 10px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-checkbox:hover input~.checkbox-mark {
    border-color: var(--zest-accent);
}

.custom-checkbox input:checked~.checkbox-mark {
    background-color: var(--zest-accent);
    border-color: var(--zest-accent);
}

.checkbox-mark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkbox-mark:after {
    display: block;
}

.custom-checkbox a {
    color: var(--zest-accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.custom-checkbox a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--zest-accent);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(240, 90, 39, 0.3);
    cursor: pointer;
}

.btn-primary-custom:hover {
    background-color: var(--zest-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 90, 39, 0.4);
}

.btn-primary-custom:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--input-border);
}

.divider:not(:empty)::before {
    margin-right: 15px;
}

.divider:not(:empty)::after {
    margin-left: 15px;
}

/* Social Buttons */
.social-login {
    display: flex;
    gap: 15px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-social:hover {
    background: var(--bg-light);
    border-color: #ccc;
    transform: translateY(-2px);
}

.btn-social img {
    width: 20px;
    height: 20px;
}

.btn-social i {
    font-size: 1.1rem;
}

.btn-social.google i {
    color: #DB4437;
}

.btn-social.facebook i {
    color: #4267B2;
}

/* Footer Link */
.form-footer {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--zest-accent);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Responsive Design */
@media (max-width: 991px) {
    .signup-wrapper {
        flex-direction: column;
    }

    .signup-left {
        padding: 3rem 2rem;
        min-height: 40vh;
        justify-content: center;
        text-align: center;
    }

    .welcome-subtitle {
        margin: 0 auto;
    }

    .signup-right {
        padding: 3rem 1.5rem;
    }

    .signup-card {
        padding: 2.5rem;
    }
}

@media (max-width: 576px) {
    .signup-left {
        min-height: unset;
        padding: 0;
        display: none;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .signup-right {
        padding: 2rem 1rem;
    }

    .signup-card {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .social-login {
        flex-direction: column;
    }
}