/* login.css */
body {
    background-color: #7a7a7a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: Arial, sans-serif;
}

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

.login-card {
    background-color: #111315;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Logo Section */
.logo-section {
    margin-bottom: 30px;
}

.logo-img {
    max-width: 280px;
    height: auto;
    margin: 0 auto;
}

/* Form Styles */
.form-label {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-control {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: white;
    border-color: #E3171E;
    box-shadow: 0 0 0 0.2rem rgba(227, 23, 30, 0.25);
    color: #333;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

/* Password Field */
.password-wrapper {
    position: relative;
}

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

.password-toggle:hover {
    color: #333;
}

.password-toggle:focus {
    outline: 2px solid #E3171E;
    outline-offset: 2px;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Links */
.forgot-link {
    color: white;
    font-size: 14px;
    text-decoration: none;
}

.forgot-link:hover {
    color: #E3171E;
    text-decoration: underline;
}

/* Buttons */
.btn-login {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #555;
    color: white;
}

.btn-login:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.btn-transportadora {
    background-color: #E3171E;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-transportadora:hover {
    background-color: #c51419;
    color: white;
}

.btn-transportadora:focus {
    box-shadow: 0 0 0 0.2rem rgba(227, 23, 30, 0.25);
}

/* Text Styles */
.login-info {
    color: white;
    font-size: 14px;
    margin-bottom: 15px;
}

.terms-text {
    color: #ccc;
    font-size: 12px;
    line-height: 1.4;
}

.terms-link {
    color: white;
    text-decoration: underline;
}

.terms-link:hover {
    color: #E3171E;
}

/* Alert Styles */
.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f8d7da;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .logo-img {
        max-width: 240px;
    }
    
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #E3171E;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-card {
        border: 2px solid white;
    }
    
    .form-control {
        border: 2px solid #333;
    }
}

