/* =====================================
   DOCTOR APP - COMPLETE CSS
   Medical Futuristic Theme
===================================== */


/* =====================================
   1. RESET
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00e5ff;
    --primary-dark: #00bcd4;
    --background: #02070b;
    --card: rgba(5, 20, 30, 0.90);
    --input-bg: #07141c;
    --border: #29404b;
    --text: #ffffff;
    --muted: #9aafb9;
}


/* =====================================
   2. BODY
===================================== */

body {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    font-family: Arial, sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(0, 229, 255, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(0, 100, 255, 0.12),
            transparent 35%
        ),
        var(--background);

    overflow-x: hidden;
}


/* =====================================
   3. ANIMATED BACKGROUND
===================================== */

.background {
    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: -1;
}

.circle {
    position: absolute;

    border-radius: 50%;

    filter: blur(80px);

    opacity: 0.35;

    animation: float 8s infinite alternate ease-in-out;
}

.circle1 {
    width: 250px;
    height: 250px;

    background: #00e5ff;

    top: -80px;
    left: -80px;
}

.circle2 {
    width: 300px;
    height: 300px;

    background: #005dff;

    bottom: -100px;
    right: -80px;

    animation-delay: 2s;
}

.circle3 {
    width: 180px;
    height: 180px;

    background: #00a6ff;

    top: 45%;
    left: 45%;

    animation-delay: 4s;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(35px, -35px);
    }
}


/* =====================================
   4. MAIN CONTAINER
===================================== */

.login-container {
    width: 100%;
    max-width: 440px;

    margin: auto;
}


/* =====================================
   5. LOGIN / REGISTER CARD
===================================== */

.login-box {
    width: 100%;

    padding: 35px 28px;

    background: var(--card);

    border: 1px solid rgba(0, 229, 255, 0.35);

    border-radius: 24px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 0 25px rgba(0, 229, 255, 0.10),
        inset 0 0 20px rgba(0, 229, 255, 0.02);

    animation: appear 0.8s ease;
}

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

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


/* =====================================
   6. LOGO
===================================== */

.logo {
    width: 68px;
    height: 68px;

    margin: 0 auto 18px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 2px solid var(--primary);

    border-radius: 50%;

    color: var(--primary);

    font-size: 42px;
    font-weight: bold;

    box-shadow:
        0 0 12px rgba(0, 229, 255, 0.35),
        inset 0 0 12px rgba(0, 229, 255, 0.10);

    animation: logoGlow 2s infinite alternate;
}

@keyframes logoGlow {
    from {
        box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
    }

    to {
        box-shadow:
            0 0 12px rgba(0, 229, 255, 0.70),
            0 0 25px rgba(0, 229, 255, 0.25);
    }
}


/* =====================================
   7. HEADINGS
===================================== */

h1 {
    text-align: center;

    color: var(--primary);

    font-size: 32px;

    letter-spacing: 5px;

    margin-bottom: 10px;

    text-shadow: 0 0 12px rgba(0, 229, 255, 0.30);
}

h2 {
    text-align: center;

    font-size: 23px;

    margin-bottom: 15px;
}

.welcome,
.subtitle {
    color: var(--muted);

    text-align: center;

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 28px;
}


/* =====================================
   8. FORM INPUT GROUP
===================================== */

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;

    margin-bottom: 9px;

    color: var(--primary);

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1.5px;
}


/* =====================================
   9. TEXT INPUTS
===================================== */

.input-group input {
    display: block;

    width: 100%;

    padding: 14px 15px;

    background: var(--input-bg);

    color: var(--text);

    border: 1px solid var(--border);

    border-radius: 11px;

    outline: none;

    font-family: inherit;

    font-size: 15px;

    transition:
        border-color 0.3s,
        box-shadow 0.3s,
        background 0.3s;
}

.input-group input::placeholder {
    color: #71848d;
}

.input-group input:focus {
    border-color: var(--primary);

    background: #091b26;

    box-shadow:
        0 0 0 3px rgba(0, 229, 255, 0.08),
        0 0 15px rgba(0, 229, 255, 0.12);
}


/* =====================================
   10. ACCOUNT TYPE DROPDOWN
===================================== */

.input-group select {
    width: 100%;

    padding: 15px;

    appearance: auto;
    -webkit-appearance: auto;

    background: linear-gradient(
        135deg,
        #0b1925,
        #102c40
    );

    color: var(--primary);

    border: 1px solid var(--primary-dark);

    border-radius: 12px;

    outline: none;

    font-family: inherit;

    font-size: 15px;

    cursor: pointer;

    box-shadow:
        0 0 10px rgba(0, 229, 255, 0.08);

    transition: 0.3s;
}

.input-group select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 15px rgba(0, 229, 255, 0.25);
}

.input-group select option {
    background: #07141c;

    color: white;
}


/* =====================================
   11. PASSWORD SHOW / HIDE BUTTON
===================================== */

.password-box {
    position: relative;
}

.password-box input {
    padding-right: 55px;
}

.password-box button {
    position: absolute;

    top: 50%;
    right: 8px;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    padding: 0;

    background: transparent;

    color: var(--primary);

    border: none;

    font-size: 18px;

    cursor: pointer;

    box-shadow: none;
}

.password-box button:hover {
    background: rgba(0, 229, 255, 0.08);

    transform: translateY(-50%);
}


/* =====================================
   12. REMEMBER ME / FORGOT PASSWORD
===================================== */

.options {
    display: flex;

    justify-content: space-between;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 25px;

    color: var(--muted);

    font-size: 12px;
}

.options label {
    display: flex;
    align-items: center;

    gap: 5px;

    cursor: pointer;
}

.options input[type="checkbox"] {
    accent-color: var(--primary);
}

a {
    color: var(--primary);

    text-decoration: none;

    transition: 0.3s;
}

a:hover {
    color: #8af5ff;

    text-shadow: 0 0 8px rgba(0, 229, 255, 0.30);
}


/* =====================================
   13. BUTTONS
===================================== */

button.login-btn,
.login-box > form > button,
#registerForm > button {
    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 11px;

    background: linear-gradient(
        135deg,
        #00e5ff,
        #00bcd4
    );

    color: #001014;

    font-family: inherit;

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 1.5px;

    cursor: pointer;

    transition:
        transform 0.3s,
        box-shadow 0.3s,
        filter 0.3s;
}

button.login-btn:hover,
.login-box > form > button:hover,
#registerForm > button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 5px 20px rgba(0, 229, 255, 0.25);

    filter: brightness(1.08);
}

button:active {
    transform: scale(0.98);
}


/* =====================================
   14. REGISTER / LOGIN LINK
===================================== */

.register,
.back-login {
    text-align: center;

    margin-top: 24px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.8;
}

.register a,
.back-login a {
    font-weight: bold;
}


/* =====================================
   15. MESSAGE
===================================== */

#message {
    text-align: center;

    margin-top: 15px;

    font-size: 14px;

    line-height: 1.6;
}


/* =====================================
   16. SCROLLBAR
===================================== */

.login-box {
    max-height: 90vh;

    overflow-y: auto;
}

.login-box::-webkit-scrollbar {
    width: 5px;
}

.login-box::-webkit-scrollbar-thumb {
    background: var(--primary-dark);

    border-radius: 10px;
}

.login-box::-webkit-scrollbar-track {
    background: transparent;
}


/* =====================================
   17. MOBILE RESPONSIVE
===================================== */

@media (max-width: 480px) {

    body {
        padding: 14px;
    }

    .login-container {
        max-width: 100%;
    }

    .login-box {
        padding: 28px 20px;

        border-radius: 20px;

        max-height: 92vh;
    }

    h1 {
        font-size: 28px;

        letter-spacing: 4px;
    }

    h2 {
        font-size: 21px;
    }

    .input-group input,
    .input-group select {
        padding: 13px;

        font-size: 14px;
    }

    .options {
        font-size: 11px;
    }

    .logo {
        width: 60px;
        height: 60px;

        font-size: 36px;
    }
}


/* =====================================
   18. REDUCED MOTION ACCESSIBILITY
===================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}
/* [hidden] attribute always wins */
[hidden] {
    display: none !important;
}

/* Inline form feedback */
.form-error {
    display: none;
    margin: 10px 0 2px;
    color: #ff6b7d;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.form-error.show {
    display: block;
}

.form-success {
    display: none;
    margin: 10px 0 2px;
    color: #3ddc97;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.form-success.show {
    display: block;
}
