/* login.css */

.login-container {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #e9ecef;
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: flex;
    min-height: 400px;
    transform: scale(0.80);
    transform-origin: center;
    margin: 0 auto;
}

.login-header {
    color: #333;
    padding: 2.5rem 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    text-align: center;
    position: relative;
}

.login-logo {
    max-height: 110px;
    width: auto;
    margin-bottom: 4rem;
    object-fit: contain;
}

.static-logo {
    max-height: 110px;
    width: auto;
    margin-bottom: 4rem;
    object-fit: contain;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #333;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 1.0rem 0 9rem 0;
    font-weight: 400;
}

.login-body {
    padding: 3rem 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.form-control {
    border-radius: 8px;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.btn-login {
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    color: #333;
}

.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
}

.input-group {
    position: relative;
}

.welcome-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #666;
    display: flex;
    align-items: center;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.logo-placeholder {
    width: 200px; 
    height: 100px; 
    border: 2px dashed #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0 auto 1rem auto;
}

.logo-text-fallback {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0 auto 1rem auto;
    border: 2px solid #3498db;
}

.logo-text-fallback div {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
}

.copyright-footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1000;
    pointer-events: auto;
}

.copyright-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    line-height: 1.4;
}

.copyright-link:hover {
    color: #495057;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.copyright-symbols {
    font-size: 0.85rem;
    margin-right: 2px;
    vertical-align: -0.05em;
}

.copyright-year {
    font-weight: 500;
}

.copyright-company {
    font-weight: 600;
    color: #343a40;
}

/* Responsividade */
@media (max-width: 992px) {
    .login-container {
        padding: 1rem;
        background: white;
    }
    
    .login-card {
        flex-direction: column;
        max-width: 100%;
        min-height: auto;
        transform: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    .login-header {
        padding: 2rem 1.5rem 1.5rem;
        background: white;
        border-bottom: 2px solid #f1f3f5;
    }
    
    .login-header::before {
        display: none;
    }
    
    .login-logo,
    .static-logo {
        max-height: 150px;
        margin-bottom: 1rem;
    }
    
    .login-title {
        font-size: 1.1rem;
        color: #2c3e50;
    }
    
    .login-subtitle {
        font-size: 1.1rem;
        color: #6c757d;
        margin: 0.75rem 0 0 0;
        font-weight: 400;
    }

    .login-body {
        padding: 2rem 1.5rem;
    }
    
    .welcome-text .login-title {
        display: none;
    }
    
    .welcome-text {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .login-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .login-body {
        padding: 1.5rem 1rem;
    }
    
    .login-logo,
    .static-logo {
        max-height: 70px;
    }
    
    .btn-login {
        padding: 0.75rem 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 992px) and (orientation: portrait) {
    .login-header {
        padding: 2.5rem 2rem 2rem;
    }
    
    .login-body {
        padding: 2rem 2rem;
    }
}
