﻿/* Admin Login Styles */

.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #636750 0%, #1f2b1a 100%);
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.login-header p {
    color: #888;
    margin: 0;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #454e3b;
    box-shadow: 0 0 0 3px rgba(69, 78, 59, 0.15);
}

.btn-login {
    padding: 12px;
    background: linear-gradient(135deg, #636750 0%, #1f2b1a 100%);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 45px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(69, 78, 59, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--white);
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    padding: 12px;
    background-color: #fee;
    color: #c33;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    padding: 12px;
    background-color: #efe;
    color: #3c3;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
    display: none;
}

.success-message.show {
    display: block;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: #888;
    font-size: 14px;
}

.login-footer a {
    color: #454e3b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #1f2b1a;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 28px 20px;
    }

    .login-header h1 {
        font-size: 22px;
    }

    .login-header p {
        font-size: 13px;
    }

    .form-group input {
        padding: 14px 12px;
        font-size: 16px; /* evita zoom automatico su iOS */
    }

    .btn-login {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 24px 16px;
    }

    .login-header h1 {
        font-size: 20px;
    }
}
