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

/* Typography System */
body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    
    /* Full viewport height, no scrollbars */
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    
    /* Dark gradient background */
    background: radial-gradient(
        circle at top,
        #1a1d23 0%,
        #0e1117 60%
    );
    
    color: #ffffff;
    line-height: 1.5;
    
    /* Centered layout */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Card Container */
main {
    width: 100%;
    max-width: 420px;
}

.login-card {
    /* Glass effect card */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 40px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    
    /* No hover animations, stable and serious */
    transition: none;
}

/* Brand Header Section */
.brand-header {
    margin-bottom: 32px;
    text-align: left;
}

.brand-name {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #f5f7fa;
    margin: 0;
    line-height: 1.2;
}

.app-name {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.75);
    margin: 8px 0 0 0;
    line-height: 1.3;
    font-family: inherit;
}

.app-name:empty {
    display: none;
}

.brand-subtext {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 6px;
    font-weight: 400;
    line-height: 1.4;
}

/* Form Structure */
form {
    margin-bottom: 24px;
}

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

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

/* Labels */
label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

/* Input Fields */
input[type="email"],
input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.01em;
    transition: all 120ms ease-out;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: rgba(120, 180, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
}

/* Primary Action Button */
.btn-primary {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    background: #4c8dff;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 120ms ease-out;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: #3b7cff;
}

.btn-primary:active {
    background: #336ed6;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #4c8dff;
}

/* Error Messages */
.error-message {
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 8px;
    color: rgba(255, 180, 180, 0.95);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

/* SSO Section */
.sso-section {
    display: none; /* Hidden until SSO is implemented */
    margin-top: 24px;
    margin-bottom: 24px;
}

.sso-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 400;
}

.sso-buttons {
    display: flex;
    gap: 12px;
}

.btn-sso {
    flex: 1;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 120ms ease-out;
    letter-spacing: 0.01em;
}

.btn-sso:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-sso:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.03);
}

.btn-sso:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sso svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Reset Password Link */
.reset-password-link {
    text-align: center;
    margin-top: 16px;
}

.reset-password-link a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 400;
    transition: all 120ms ease-out;
    display: inline-block;
}

.reset-password-link a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.reset-password-link a:focus {
    outline: 1px solid rgba(120, 180, 255, 0.4);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Footer Microcopy */
.footer-microcopy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 24px;
    font-weight: 400;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .login-card {
        padding: 32px 24px;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .app-name {
        font-size: 16px;
    }
    
    .brand-subtext {
        font-size: 12px;
    }
    
    .sso-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-sso {
        width: 100%;
    }
}

/* Denied Page Styles (if needed) */
main > p {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 40px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}
