* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 450px;
    min-height: 100vh;
    justify-content: space-between;
}

.login-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    margin: 20px 10px;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

#apple-logo {
    width: 50px;
    height: 50px;
}

h1 {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 30px;
    color: #1d1d1f;
}

.form-container {
    width: 100%;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 17px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 125, 250, 0.1);
}

input.error {
    border-color: #ff3b30;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}

.error-message {
    color: #ff3b30;
    font-size: 12px;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.remember-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

input[type="checkbox"] {
    margin-right: 10px;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #d2d2d7;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: #0071e3;
    border-color: #0071e3;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    top: 2px;
    left: 6px;
    transform: rotate(45deg);
}

label {
    font-size: 14px;
    color: #494949;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #0071e3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-btn:hover {
    background-color: #0077ed;
}

.login-btn:disabled {
    background-color: #76b9f7;
    cursor: not-allowed;
}

.forgot-section {
    text-align: center;
    margin: 20px 0;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #d2d2d7;
}

.divider span {
    padding: 0 10px;
    color: #86868b;
    font-size: 14px;
}

.create-account {
    text-align: center;
    margin-top: 20px;
}

a {
    color: #0071e3;
    text-decoration: none;
    font-size: 14px;
}

a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 20px 10px;
    margin-top: auto;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    margin: 0 10px;
    color: #494949;
    font-size: 12px;
}

.copyright {
    color: #86868b;
    font-size: 12px;
}

@media (max-width: 480px) {
    .login-container {
        border-radius: 0;
        box-shadow: none;
        padding: 30px 20px;
        margin: 0;
    }
    
    .container {
        max-width: 100%;
    }
} 