/**
 * Estilos do Login - Sistema Financeiro
 * CSS principal da página de login
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #183e9f 0%, #30a23f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

.main-container {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 1300px;
    align-items: stretch;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(24, 62, 159, 0.2);
}

.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(254, 254, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(254, 254, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(254, 254, 254, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.login-container {
    width: 500px;
    background: rgba(254, 254, 254, 0.98);
    backdrop-filter: blur(25px);
    padding: 3.5rem;
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease-out;
    border-radius: 20px 0 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-container {
    flex: 1;
    background: linear-gradient(135deg, rgba(232, 238, 248, 0.98), rgba(225, 235, 245, 0.98));
    backdrop-filter: blur(25px);
    padding: 3.5rem;
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 20px 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    color: #183e9f;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    color: #183e9f;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-container {
    position: relative;
}

.input-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #183e9f;
    font-size: 1.1rem;
    z-index: 3;
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: #30a23f;
    box-shadow: 0 0 0 3px rgba(48, 162, 63, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #999;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #30a23f;
}

.checkbox-container label {
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 0;
}

.forgot-password {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password a {
    color: #183e9f;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #30a23f;
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: #999;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e5e9;
}

.divider span {
    padding: 0 1rem;
}

.register-link {
    text-align: center;
    margin-top: 1rem;
}

.register-link a {
    color: #183e9f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #30a23f;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 1rem;
}

.loading i {
    color: #30a23f;
    font-size: 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #363;
    border: 1px solid #cfc;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    background: rgba(254, 254, 254, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 10%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 30%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Estilos do cartão de informações */
.info-title {
    color: #183e9f;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.info-subtitle {
    color: #30a23f;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.3px;
}

.info-description {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.features-list li {
    color: #333;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 400;
}

.features-list li i {
    color: #183e9f;
    margin-right: 0.8rem;
    font-size: 1.1rem;
    width: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        border-radius: 20px;
    }
    
    .login-container {
        border-radius: 20px 20px 0 0;
    }
    
    .info-container {
        border-radius: 0 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .login-container, .info-container {
        margin: 0;
        padding: 2rem;
    }
    
    .login-title, .info-title {
        font-size: 1.5rem;
    }
}

