/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: #663F8C;
    overflow-x: hidden;
}

/* Container principal */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Header com logo */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.logo-img {
    width: 300px;
    height: 150px;
    object-fit: contain;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #663F8C, #6c757d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Container do login */
.login-container {
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.1);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6c757d, #663F8C, #6c757d);
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #663F8C;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-card h2 i {
    color: #6c757d;
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #663F8C;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.form-group label i {
    color: #6c757d;
    width: 16px;
}

.form-group input {
    padding: 15px;
    border: 2px solid rgba(108, 117, 125, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #663F8C;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: rgba(108, 117, 125, 0.6);
}

.form-group input:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 15px rgba(108, 117, 125, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

/* Input de senha */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    flex: 1;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #663F8C;
}

/* Botão de login */
.btn-login {
    background: linear-gradient(45deg, #6c757d, #663F8C);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 117, 125, 0.3);
}

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

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

/* Footer do login */
.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(108, 117, 125, 0.1);
}

.login-footer p {
    color: #6c757d;
    font-size: 0.9rem;
}

.forgot-password {
    color: #663F8C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #343a40;
    text-decoration: underline;
}

/* Footer principal */
.footer {
    margin-top: 40px;
    text-align: center;
    color: rgba(108, 117, 125, 0.7);
    font-size: 0.9rem;
}

/* Loading spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(108, 117, 125, 0.3);
    border-top: 4px solid #6c757d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading p {
    color: #ffffff;
    font-size: 1.1rem;
}

/* Notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: 10px;
    padding: 15px 20px;
    color: #663F8C;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.notification.hidden {
    display: none;
}

.notification.success {
    border-left: 4px solid #6c757d;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.notification i {
    font-size: 1.2rem;
}

.notification.success i {
    color: #6c757d;
}

.notification.error i {
    color: #dc3545;
}

.close-notification {
    background: none;
    border: none;
    color: rgba(108, 117, 125, 0.7);
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
    transition: color 0.3s ease;
}

.close-notification:hover {
    color: #663F8C;
}

/* Animações */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo-container {
        padding: 15px;
    }
    
    .logo-img {
        width: 180px;
        height: 180px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .login-card {
        padding: 30px 25px;
    }
    
    .login-card h2 {
        font-size: 1.3rem;
    }
    
    .form-group input {
        padding: 12px;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 1rem;
    }
    
    .notification {
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .logo-container {
        padding: 12px;
    }
    
    .logo-img {
        width: 170px;
        height: 170px;
    }
    
    .login-card {
        padding: 25px 20px;
    }
    
    .form-group {
        gap: 6px;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 0.9rem;
    }
}
