:root {
    --bg-color: #0b0c10;
    --card-bg: #1f2833;
    --text-main: #c5c6c7;
    --text-dim: #888;
    --highlight: #66fcf1;
    --highlight-dark: #45a29e;
    --input-bg: #0b0c10;
    --border-color: #2c3e50;
    --success: #4caf50;
    --error: #ff4d4d;
    --warning: #f1c40f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Background decorativo */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 10%, rgba(102, 252, 241, 0.05) 0%, rgba(11, 12, 16, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Container principal */
.forgot-password-container {
    background-color: rgba(31, 40, 51, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(102, 252, 241, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border: 1px solid rgba(102, 252, 241, 0.1);
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 35px;
}

.logo {
    margin-bottom: 25px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Form */
.form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.required {
    color: var(--error);
}

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

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-dim);
    pointer-events: none;
    transition: color 0.3s;
}

.input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background-color: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.input::placeholder {
    color: rgba(136, 136, 136, 0.7);
}

.input:focus {
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(102, 252, 241, 0.1);
}

.input:focus + .input-icon {
    color: var(--highlight);
}

.input.error {
    border-color: var(--error);
    background-color: rgba(255, 77, 77, 0.05);
}

.input.success {
    border-color: var(--success);
}

.help-text {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 6px;
}

.error-message {
    display: none;
    font-size: 13px;
    color: var(--error);
    margin-top: 8px;
    padding: 8px 12px;
    background-color: rgba(255, 77, 77, 0.1);
    border-left: 3px solid var(--error);
    border-radius: 4px;
}

.error-message.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 100px;
        transform: translateY(0);
    }
}

/* Botão primário */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--highlight-dark) 0%, var(--highlight) 100%);
    border: none;
    border-radius: 10px;
    color: #0b0c10;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 252, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 252, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, rgba(69, 162, 158, 0.3) 0%, rgba(102, 252, 241, 0.3) 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    animation: rotate 1s linear infinite;
}

.spinner-circle {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 25;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Cooldown Timer */
.cooldown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    background-color: rgba(102, 252, 241, 0.1);
    border: 1px solid rgba(102, 252, 241, 0.3);
    border-radius: 8px;
    color: var(--highlight);
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.cooldown-timer svg {
    animation: tick 1s infinite;
}

@keyframes tick {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

.cooldown-timer strong {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

/* Success Message */
.success-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: rgba(76, 175, 80, 0.1);
    border: 2px solid var(--success);
    border-radius: 10px;
    margin-top: 20px;
    animation: slideDown 0.5s ease-out;
}

.success-message svg {
    flex-shrink: 0;
    color: var(--success);
    margin-top: 2px;
}

.success-message h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 8px;
}

.success-message p {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
}

/* Back to Login */
.back-to-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 252, 241, 0.1);
}

.back-to-login svg {
    color: var(--highlight);
}

.link {
    color: var(--highlight);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

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

/* Security Info */
.security-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background-color: rgba(69, 162, 158, 0.1);
    border-left: 3px solid var(--highlight-dark);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
}

.security-info svg {
    flex-shrink: 0;
    color: var(--highlight-dark);
    margin-top: 2px;
}

.security-info strong {
    color: var(--highlight);
}

/* Responsivo */
@media (max-width: 600px) {
    .forgot-password-container {
        padding: 30px 20px;
    }

    .title {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .btn-primary {
        padding: 14px;
        font-size: 14px;
    }
}

/* Toast Container (importado de outros componentes) */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 600px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
}

