:root {
    --apple-blue: #0071e3;
    --apple-gray: #f5f5f7;
    --text-main: #1d1d1f;
    --text-sub: #86868b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f2f2f6;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px 0; 
}

.login-wrapper {
    width: 100%;
    max-width: 480px; 
    padding: 20px;
}

.apple-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    padding: 40px 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.brand-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-subtitle {
    font-size: 0.95rem;
    color: var(--text-sub);
    margin-bottom: 30px;
}

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

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-sub);
    margin-bottom: 8px;
    margin-left: 4px;
}

.apple-input {
    width: 100%;
    padding: 14px 16px; 
    font-size: 16px;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: none;
    color: var(--text-main);
}

.apple-input:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.apple-input::placeholder { color: #d2d2d7; }

.btn-apple {
    width: 100%;
    background-color: var(--apple-blue);
    color: white;
    font-size: 17px;
    font-weight: 500;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-apple:hover {
    background-color: #0077ED;
}

.alert-error {
    background-color: #fff2f2;
    color: #ff3b30;
    border-radius: 12px;
    padding: 12px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border: 1px solid #ffcccc;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.auth-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e5ea;
    font-size: 0.9rem;
    color: var(--text-sub);
}
.auth-footer a { color: var(--apple-blue); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

.back-link {
    display: block;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.2s;
}
.back-link:hover { color: var(--text-main); }