:root {
    --primary-color: #1c244b;
    --bg-color: #f3f5f8;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 440px;
    width: 100%;
    overflow: hidden;
}

.auth-header {
    background: var(--primary-color);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.auth-logo {
    width: 120px;
    height: auto;
    margin-bottom: 16px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-header p {
    opacity: 0.9;
    font-size: 14px;
    font-weight: 400;
}

.auth-content {
    padding: 40px 30px;
}

.auth-form-group {
    margin-bottom: 24px;
}

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

.auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(28, 36, 75, 0.1);
}

.auth-input.error {
    border-color: #f5c6cb;
}

.auth-error {
    color: #721c24;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.auth-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.auth-checkbox-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.auth-btn {
    padding: 12px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 36, 75, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
}

.auth-alert.show {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 1;
    transform: translateY(0);
}

.auth-alert::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.auth-alert.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b1dfbb;
    box-shadow: 0 4px 12px rgba(21, 87, 36, 0.15);
}

.auth-alert.success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23155724'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
}

.auth-alert.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f1b0b7;
    box-shadow: 0 4px 12px rgba(114, 28, 36, 0.15);
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.auth-alert.error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23721c24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

.auth-alert.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #abdde5;
    box-shadow: 0 4px 12px rgba(12, 84, 96, 0.15);
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.auth-alert.info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230c5460'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .auth-container {
        border-radius: 12px;
    }

    .auth-header {
        padding: 30px 20px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-logo {
        width: 100px;
    }

    .auth-content {
        padding: 30px 20px;
    }

    .auth-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .auth-btn {
        width: 100%;
    }

    .auth-link {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
