/* Premium Signup CSS - Matches Login Theme */

#signup-root {
    min-height: calc(100vh - 160px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../../images/shop-banner.png') center/cover no-repeat fixed;
    position: relative;
    font-family: 'Poppins', sans-serif;
    padding: 40px 20px 60px;
    /* Reduced top padding to minimize gap from header */
}

/* Light Overlay */
#signup-root::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

/* Card */
#signup-root .container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    /* Slightly wider for signup */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

#signup-root h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Input Fields */
#signup-root .input-box {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

#signup-root .input-box input {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #ccc;
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: 0.3s;
    border-radius: 0;
}

#signup-root .input-box label {
    position: absolute;
    top: 12px;
    left: 15px;
    font-size: 0.95rem;
    color: #777;
    pointer-events: none;
    transition: 0.3s;
}

/* Floating Label Logic */
#signup-root .input-box input:focus~label,
#signup-root .input-box input:not(:placeholder-shown)~label,
#signup-root .input-box input[type="date"]~label {
    /* Always float for date */
    top: -10px;
    left: 0;
    color: #d4af37;
    font-size: 0.8rem;
    font-weight: 600;
}

#signup-root .input-box input:focus,
#signup-root .input-box input:not(:placeholder-shown) {
    border-bottom-color: #d4af37;
}

/* Button */
#signup-root .btn,
#signup-root .back-btn {
    width: 100%;
    padding: 15px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    display: block;
}

#signup-root .loader {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: none;
    /* Hidden by default */
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    vertical-align: middle;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#signup-root .btn:hover,
#signup-root .back-btn:hover {
    background: #d4af37;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

#signup-root .back-btn {
    background: transparent;
    color: #555;
    border: 2px solid #eee;
    margin-top: 20px;
}

#signup-root .back-btn:hover {
    border-color: #d4af37;
    background: transparent;
    color: #d4af37;
    box-shadow: none;
}

/* Links */
#signup-root .links {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #555;
}

#signup-root .links a {
    color: #f15406;
    font-weight: 600;
    text-decoration: none;
}

/* OTP Styling */
#otpStep .otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

#otpStep .otp-input {
    width: 45px;
    height: 50px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-weight: 700;
}

#otpStep .otp-input:focus {
    border-color: #d4af37;
    outline: none;
}

#resendBtn {
    background: none;
    border: none;
    color: #f15406;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

#resendBtn:disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none;
}

@media (max-width: 576px) {
    #signup-root {
        padding-top: 40px;
        min-height: auto;
    }

    #signup-root .container {
        padding: 25px 20px;
    }

    #signup-root h2 {
        font-size: 1.8rem;
    }

    #otpStep .otp-container {
        gap: 5px;
    }

    #otpStep .otp-input {
        width: 40px;
        height: 45px;
        font-size: 1.2rem;
    }
}