﻿* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: linear-gradient( 135deg, #eef4ff, #f6f9ff );
    color: #07183f;
}

.login-wrapper {
    width: 100%;
    height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 40px);
    background: white;
    border-radius: 22px;
    overflow: auto;
    box-shadow: 0 16px 60px rgba(0,0,0,.08);
}

.form-panel {
    padding: 42px;
}

.form-content {
    width: 100%;
}

.top-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #eef4ff;
    color: #0f46d6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 900;
}

.form-content h2 {
    margin: 0;
    text-align: center;
    font-size: 32px;
    color: #07183f;
}

.subtitle {
    text-align: center;
    color: #667085;
    margin: 12px 0 34px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
    }

.input-wrap {
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #d8e1ef;
    border-radius: 12px;
    transition: .2s;
}

    .input-wrap:focus-within {
        border-color: #145cff;
        box-shadow: 0 0 0 4px rgba(20,92,255,.08);
    }

    .input-wrap input {
        width: 100%;
        border: none;
        outline: none;
        background: transparent;
        font-size: 15px;
    }

        .input-wrap input::placeholder {
            color: #94a3b8;
        }

.options {
    margin: 8px 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

    .options a {
        color: #145cff;
        text-decoration: none;
    }

.login-btn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 12px;
    background: linear-gradient( 135deg, #145cff, #003fd1 );
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

    .login-btn:hover {
        transform: translateY(-1px);
    }

.validation {
    margin-bottom: 18px;
    color: #dc2626;
    text-align: left;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 13px;
}

footer {
    margin-top: 28px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

@media (max-height: 760px) {

    .login-card {
        max-height: 100%;
    }

    .form-panel {
        padding: 28px;
    }

    .top-logo {
        width: 72px;
        height: 72px;
        font-size: 38px;
    }

    .subtitle {
        margin-bottom: 24px;
    }
}

.success-logo {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.success-message {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .95rem;
}