/* Auth Pages CSS - v1.0 */
/* For login, forgot-password, and reset-password pages */

body {
    background-color: #000;
    color: #fff;
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-container,
.reset-container,
.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.back-link {
    color: #4a7c9e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #5a8cae;
}

.back-link i {
    margin-right: 8px;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.subtitle {
    color: #888;
    margin-bottom: 30px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    color: #fff !important;
    font-size: 16px;
    margin-bottom: 20px;
}

.form-control::placeholder {
    color: #888;
    opacity: 1;
}

.form-control:focus {
    outline: none;
    border-color: #4a4a4a;
    background-color: #333;
}

/* Garantir cor branca nos inputs */
input[type="email"].form-control,
input[type="password"].form-control,
input[type="text"].form-control {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Estilos para autocomplete */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 30px #2a2a2a inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: #4a7c9e;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #5a8cae;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.alert-custom {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-success {
    background-color: rgba(0, 255, 0, 0.2);
    color: #4caf50;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.alert-error {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Password strength indicator */
.password-strength {
    margin-top: -15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.password-strength.weak {
    color: #ff6b6b;
}

.password-strength.medium {
    color: #ffa500;
}

.password-strength.strong {
    color: #4caf50;
}

/* Reset password specific styles */
.reset-container {
    width: 100%;
    max-width: 400px;
    background-color: #1a1a1a;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 120px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

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

/* Password validation */
.password-validation {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.validation-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-bottom: 8px;
    color: #888;
    transition: color 0.3s ease;
}

.validation-item:last-child {
    margin-bottom: 0;
}

.validation-item i {
    font-size: 8px;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.validation-item.valid {
    color: #4caf50;
}

.validation-item.valid i {
    color: #4caf50;
}

/* Password requirements list */
.password-requirements {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.password-requirements h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #888;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.password-requirements li i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.password-requirements li.valid {
    color: #4caf50;
}

.password-requirements li.valid i {
    color: #4caf50;
}

/* Field feedback */
.field-feedback {
    font-size: 13px;
    margin-top: 5px;
    color: #f44336;
}

/* Success states */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 60px;
    color: #4caf50;
    margin-bottom: 20px;
}

.success-message {
    font-size: 18px;
    margin-bottom: 10px;
}

.success-submessage {
    color: #888;
    margin-bottom: 30px;
}

.btn-login {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4a7c9e;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #5a8cae;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(74, 124, 158, 0.3);
}

/* Spinner animation */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert warning */
.alert-warning {
    background-color: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

/* Update h1 and h2 styles */
h1, h2 {
    font-weight: 600;
    text-align: center;
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

h2 {
    font-size: 20px;
}

/* Update body for reset page */
body {
    padding: 20px;
}