/* AMMS Login - Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 32px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 8px;
}

.logo::before {
    content: "📍";
    font-size: 36px;
}

.logo-subtitle {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

.welcome-text {
    text-align: center;
    margin-bottom: 32px;
}

.welcome-text h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.welcome-text p {
    font-size: 14px;
    color: #6c757d;
}

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

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

.form-input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    padding-left: 44px;
    font-size: 14px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-input:focus {
    border-color: #0d6efd;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.form-input.error {
    border-color: #dc3545;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 18px;
    pointer-events: none;
}

.form-input:focus+.input-icon {
    color: #0d6efd;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #0d6efd;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0d6efd;
}

.remember-me label {
    font-size: 13px;
    color: #495057;
    cursor: pointer;
}

.forgot-password {
    font-size: 13px;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-login:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

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

.btn-login:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #6c757d;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #dee2e6;
}

.divider::before {
    margin-right: 12px;
}

.divider::after {
    margin-left: 12px;
}

.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    background-color: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-social:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.signup-text {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
}

.signup-text a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.signup-text a:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
    display: none;
}

.error-message.show {
    display: block;
}

.footer-text {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #dee2e6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
}

.footer-links a {
    font-size: 12px;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0d6efd;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }

    .logo {
        font-size: 28px;
    }

    .welcome-text h2 {
        font-size: 20px;
    }

    .social-login {
        flex-direction: column;
    }
}