* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.logo-container {
    text-align: center;
    margin-bottom: 48px;
}

.logo-placeholder {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #0066FF 0%, #00D4AA 100%);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.logo-placeholder span {
    color: white;
    font-weight: 600;
    font-size: 24px;
}

.brand-name {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px; /* ≥16px prevents iOS Safari from zooming on focus */
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fafafa;
}

.form-group input:focus {
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    background-color: #ffffff;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.input-readonly {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(135deg, #0066FF 0%, #0052cc 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-login:disabled:hover {
    transform: none;
    box-shadow: none;
}

.validation-summary {
    display: none;
}

.field-validation-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.input-validation-error {
    border-color: #dc2626 !important;
}

.error-message {
    padding: 12px 0;
    color: #dc2626;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

.info-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    background-color: #dbeafe;
    border-left: 4px solid #0066FF;
    border-radius: 8px;
    color: #1e40af;
    font-size: 14px;
}

.btn-link {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #0066FF;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-link:hover {
    color: #0052cc;
}

@media (max-width: 768px) {
    .login-container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 40px 32px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
    }

    .logo-placeholder {
        width: 52px;
        height: 52px;
    }

    .logo-placeholder span {
        font-size: 20px;
    }

    .brand-name {
        font-size: 20px;
    }

    .logo-container {
        margin-bottom: 32px;
    }
}

