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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #f5f6f8;
    color: #111827;
}

.affymy-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

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

.affymy-login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.affymy-login-logo {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
}

.affymy-login-tagline {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.affymy-login-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.affymy-login-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.affymy-login-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 24px;
}

.affymy-login-error {
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #dc2626;
    margin-bottom: 16px;
}

.affymy-login-success {
    background: rgba(5, 150, 105, 0.05);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #059669;
    margin-bottom: 16px;
}

.affymy-field {
    margin-bottom: 16px;
}

.affymy-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.affymy-field input[type="text"],
.affymy-field input[type="password"],
.affymy-field input[type="email"] {
    width: 100%;
    padding: 9px 12px;
    background: #f5f6f8;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    color: #111827;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.affymy-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.affymy-field input::placeholder {
    color: #9ca3af;
}

.affymy-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.affymy-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}

.affymy-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #2563eb;
}

.affymy-forgot {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.affymy-forgot:hover {
    text-decoration: underline;
}

.affymy-login-btn {
    width: 100%;
    padding: 10px 20px;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.affymy-login-btn:hover {
    background: #1d4ed8;
}

.affymy-login-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

.affymy-login-link a {
    color: #2563eb;
    text-decoration: none;
}

.affymy-login-link a:hover {
    text-decoration: underline;
}

.affymy-login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #9ca3af;
}

@media (max-width: 480px) {
    .affymy-login-card { padding: 24px; }
}
