/* Login Moderno - PQR System */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    padding: 30px 30px;
    text-align: center;
    color: white;
}

.logo-container {
    margin-bottom: 10px;
}

.logo-container img,
.logo-container svg {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 3px;
}

.login-header p {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 300;
}

.login-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.tab-link {
    flex: 1;
    padding: 18px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-link.active {
    color: #56ab2f;
    background: white;
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.tab-link:hover:not(.active) {
    background: #e9ecef;
}

.login-body {
    padding: 35px 30px;
}

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

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

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #56ab2f;
    background: white;
    box-shadow: 0 0 0 3px rgba(86, 171, 47, 0.1);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.input-icon .form-control {
    padding-left: 45px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 171, 47, 0.5);
}

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

.btn-register {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    box-shadow: 0 4px 15px rgba(86, 171, 47, 0.4);
}

.btn-register:hover {
    box-shadow: 0 6px 20px rgba(86, 171, 47, 0.5);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.form-footer a {
    color: #56ab2f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #3d7a22;
    text-decoration: underline;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #495057;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        border-radius: 15px;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .login-body {
        padding: 25px 20px;
    }
}

/* Loading animation */
.btn-login:disabled,
.btn-register:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-login:disabled::after,
.btn-register:disabled::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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

/* Hide forms */
.form-hidden {
    display: none;
}

.form-visible {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Google Sign-In Button */
.btn-google {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #3c4043;
    background: white;
    border: 2px solid #dadce0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    box-shadow: 0 4px 8px rgba(66, 133, 244, 0.2);
    transform: translateY(-2px);
}

.btn-google:active {
    background: #f1f3f4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(0);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Separator */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
    color: #6c757d;
    font-size: 13px;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.separator span {
    padding: 0 15px;
    font-weight: 500;
}
