/* Variáveis e Reset */
:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #3a0ca3;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --gray-dark: #495057;
    --body-bg: #f5f8fa;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

/* Login Card */
.login-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.card-header {
    padding: 25px;
    text-align: center;
}

.card-header h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.card-header p {
    color: var(--gray-color);
}

.card-body {
    padding: 0 25px 25px;
}

.card-footer {
    padding: 20px 25px;
    text-align: center;
    border-top: 1px solid var(--gray-light);
    background-color: rgba(0, 0, 0, 0.01);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-dark);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 12px;
    color: var(--gray-color);
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
}

.label-with-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-password {
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 8px;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-google {
    background-color: white;
    color: var(--gray-dark);
    border: 1px solid var(--gray-light);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-google:hover {
    background-color: var(--light-color);
}

.btn-block {
    width: 100%;
}

.google-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.btn-loader {
    display: none;
}

.btn-loading .btn-text {
    display: none;
}

.btn-loading .btn-loader {
    display: inline-block;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--gray-light);
}

.divider span {
    padding: 0 15px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 576px) {
    .login-container {
        padding: 10px;
    }
    
    .card-header,
    .card-body {
        padding: 20px;
    }
    
    .card-footer {
        padding: 15px;
    }
}

.login-error {
    background-color: #ffe6e6; /* fundo avermelhado claro */
    color: #cc0000; /* texto vermelho escuro */
    border: 1px solid #ff4d4d; /* contorno vermelho */
    padding: 12px 16px;
    border-radius: 4px;
    margin: 10px 20px 20px 20px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.login-error i {
    color: #cc0000; /* cor do ícone */
    font-size: 16px;
}

.password-requirements {
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--gray-color);
}

.password-requirements ul {
  list-style-type: none;
  padding-left: 5px;
  margin-top: 5px;
}

.password-requirements li {
  margin-bottom: 3px;
  display: flex;
  align-items: center;
}

.password-requirements li i {
  margin-right: 5px;
  font-size: 0.7rem;
}

.requirement-met {
  color: var(--success-color);
}

.requirement-unmet {
  color: var(--gray-color);
}