/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
                 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.auth-minimal-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* Card */
.auth-minimal-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Header */
.auth-header { margin-bottom: 32px; }

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 15px;
    color: #6e6e73;
    text-align: center;
    line-height: 1.6;
}

/* Form Elements */
.form-group { margin-bottom: 24px; }

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    color: #1d1d1f;
    background: #ffffff;
    border: 1.5px solid #d2d2d7;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control::placeholder { color: #86868b; }
.form-control:hover { border-color: #b0b0b6; }

.form-control:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.form-control.is-invalid { border-color: #ff3b30; }

/* Button */
.btn-login {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #0071e3;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-top: 8px;
}

.btn-login:hover {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.3);
}

/* Error Messages */
.alert-danger {
    background: #fff5f5;
    border: 1.5px solid #ff3b30;
    color: #c7000b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-danger div { margin-bottom: 4px; }
.alert-danger div:last-child { margin-bottom: 0; }

/* Footer */
.auth-minimal-footer {
    text-align: center;
    color: #86868b;
    font-size: 13px;
    margin-top: 24px;
    padding: 0 20px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-minimal-card {
        padding: 36px 28px;
        border-radius: 8px;
    }
    .auth-title { font-size: 24px; }
    .auth-subtitle { font-size: 14px; }
    .form-control { font-size: 16px; } /* Prevents iOS zoom */
}

@media (max-width: 360px) {
    .auth-minimal-container { padding: 16px; }
    .auth-minimal-card { padding: 28px 20px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
