/* ============================================
   1. RESET & BASE STYLES
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #0ba5db 0%, #010a3a 100%);
    padding: 10px;
}

/* ============================================
   2. CONTAINER
============================================ */
.container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    max-height: 850px;
}

/* ============================================
   3. LOGO SECTION - REDUCED SPACING
============================================ */
.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-bottom: 2px;
    width: 100%;
    flex-shrink: 0;
}

.logo-section .logo-icon {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo-section .brand-name {
    font-size: 30px;
    font-weight: 900;
    color: #010d26;
    letter-spacing: 5px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
    margin-left: -60px;
}

/* ============================================
   4. CARD - FULLY CIRCULAR BORDERS
============================================ */
.card {
    width: 100%;
    background: #ffffff;
    border-radius: 50px;
    padding: 45px 40px 40px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    min-height: 480px;
    margin-top: -40px;
}

/* ============================================
   5. CARD TITLE
============================================ */
.card-title {
    text-align: center;
    font-size: 44px;
    line-height: 1.1;
    color: #005a87;
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.10);
    letter-spacing: 1px;
}

/* ============================================
   6. SUBTITLE TEXT
============================================ */
.subtitle-text {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #005a87;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 28px;
    padding: 0 6px;
}

/* ============================================
   7. FORM INPUTS
============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-of-type {
    margin-bottom: 18px;
}

.form-input {
    width: 100%;
    height: 54px;
    border: 2px solid #005a87;
    border-radius: 10px;
    padding: 0 18px;
    font-size: 18px;
    font-weight: 600;
    color: #005a87;
    background: #f8fcff;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: #0ba5db;
    box-shadow: 0 0 0 3px rgba(11, 165, 219, 0.15);
}

.form-input::placeholder {
    color: #007cae;
    font-size: 16px;
    font-weight: 600;
    opacity: 0.8;
}

/* ============================================
   8. RESET LINK BUTTON
============================================ */
.btn-login {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 10px;
    background: #001933;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    letter-spacing: 1px;
    margin-top: 8px;
}

.btn-login:hover {
    background: #003366;
    transform: scale(1.01);
}

.btn-login:active {
    transform: scale(0.98);
}

/* ============================================
   9. FORM MESSAGE (success / error feedback)
============================================ */
.form-message {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin-top: 18px;
    min-height: 18px;
}

.form-message.success {
    color: #1a8f4c;
}

.form-message.error {
    color: #d12c2c;
}

/* ============================================
   10. BACK TO LOGIN LINK
============================================ */
.signup-text {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #005a87;
}

.signup-text .signup-link {
    text-decoration: none;
    color: #000000;
    font-weight: 800;
    transition: color 0.3s;
}

.signup-text .signup-link:hover {
    color: #0ba5db;
}

.back-to-login {
    margin-top: 26px;
}

/* ============================================
   11. RESPONSIVE DESIGN
============================================ */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .container {
        max-height: 740px;
        padding: 0 5px;
    }

    .logo-section {
        margin-bottom: 2px;
        gap: 0px;
    }

    .logo-section .logo-icon {
        width: 65px;
    }

    .logo-section .brand-name {
        font-size: 32px;
        letter-spacing: 3px;
    }

    .card {
        border-radius: 35px;
        padding: 32px 22px 26px 22px;
        min-height: 420px;
        margin-top: 0;
    }

    .card-title {
        font-size: 36px;
        margin-bottom: 14px;
    }

    .subtitle-text {
        font-size: 13px;
        margin-bottom: 22px;
    }

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

    .form-group:last-of-type {
        margin-bottom: 14px;
    }

    .form-input {
        height: 48px;
        font-size: 16px;
        padding: 0 14px;
        border-radius: 8px;
    }

    .form-input::placeholder {
        font-size: 14px;
    }

    .btn-login {
        height: 50px;
        font-size: 18px;
        border-radius: 8px;
    }

    .form-message {
        font-size: 13px;
    }

    .back-to-login {
        margin-top: 20px;
    }

    .signup-text {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .container {
        max-height: 640px;
    }

    .logo-section {
        margin-bottom: 1px;
        gap: 0px;
    }

    .logo-section .logo-icon {
        width: 55px;
    }

    .logo-section .brand-name {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .card {
        padding: 24px 16px 20px 16px;
        border-radius: 28px;
        min-height: 380px;
        margin-top: 0;
    }

    .card-title {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .subtitle-text {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .form-input {
        height: 44px;
        font-size: 14px;
        padding: 0 12px;
    }

    .form-input::placeholder {
        font-size: 12px;
    }

    .btn-login {
        height: 46px;
        font-size: 17px;
    }
}

@media (max-height: 720px) {
    .container {
        max-height: 690px;
    }

    .logo-section {
        margin-bottom: 2px;
    }

    .logo-section .logo-icon {
        width: 60px;
    }

    .logo-section .brand-name {
        font-size: 30px;
    }

    .card {
        padding: 30px 35px 26px 35px;
        border-radius: 40px;
        min-height: 420px;
        margin-top: 0;
    }

    .card-title {
        font-size: 36px;
        margin-bottom: 14px;
    }

    .subtitle-text {
        margin-bottom: 20px;
    }

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

    .form-input {
        height: 48px;
        font-size: 16px;
    }

    .btn-login {
        height: 50px;
        font-size: 20px;
    }
}

@media (max-height: 620px) {
    .container {
        max-height: 590px;
    }

    .logo-section {
        margin-bottom: 1px;
    }

    .logo-section .logo-icon {
        width: 50px;
    }

    .logo-section .brand-name {
        font-size: 26px;
    }

    .card {
        padding: 22px 28px 20px 28px;
        border-radius: 32px;
        min-height: 360px;
        margin-top: 0;
    }

    .card-title {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .subtitle-text {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .form-input {
        height: 42px;
        font-size: 14px;
        border-radius: 8px;
    }

    .btn-login {
        height: 44px;
        font-size: 16px;
    }
}