/* Estilos para la página de autenticación */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2e7d32 0%, #ff6f00 50%, #5d4037 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 1300px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.logo-side {
    flex: 0 0 auto;
}

.side-logo {
    width: 800px;
    height: 800px;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.auth-card {
    flex: 0 0 380px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    font-size: 24px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 0;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #2e7d32;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #2e7d32 0%, #5d4037 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 111, 0, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.alert.show {
    display: block;
}

.alert-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.text-muted {
    color: #999;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1400px) {
    .side-logo {
        width: 600px;
        height: 600px;
    }

    .auth-container {
        max-width: 1100px;
    }
}

@media (max-width: 1100px) {
    .side-logo {
        width: 400px;
        height: 400px;
    }

    .auth-container {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        gap: 30px;
        max-width: 380px;
    }

    .side-logo {
        width: 280px;
        height: 280px;
    }

    .auth-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-container {
        gap: 20px;
    }

    .side-logo {
        width: 200px;
        height: 200px;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .auth-logo {
        font-size: 20px;
    }
}
