/* public/app/assets/cs/forgot-password.cs */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais - Tema Teal (Caramelo_HUB) */
    --primary: #8AC1C3;
    --primary-hover: #6fa9ab;
    --primary-light: #d4e8e9;
    --primary-dark: #294344;

    --secondary: #294344;
    --secondary-dark: #1a2a2b;
    --secondary-light: #3a5455;

    /* Backgrounds */
    --bg: rgb(250, 250, 255);
    --bg-secondary: rgb(245, 245, 255);
    --bg-tertiary: rgb(240, 240, 255);
    --bg-contrast: rgb(15, 23, 42);

    /* Neutros */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Bordas */
    --border: rgb(89, 124, 126);
    --border-dark: #445b5c;

    --white: #FFFFFF;
    --black: #000000;

    /* Semântico */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Tipografia */
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Inter', var(--font-body);

    /* Espaçamentos */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Raios de borda */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transições */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================
   HERO / HEADER
   ========================================== */

.forgot-password-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--space-xl) var(--space-lg) var(--space-xl);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: visible;
}

.forgot-password-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto var(--space-md);
    width: 100%;
    position: relative;
    z-index: 10;
}

.breadcrumb ol {
    display: flex;
    gap: var(--space-sm);
    list-style: none;
    font-size: 0.875rem;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    color: var(--gray-300);
    font-size: 1.25rem;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    opacity: 1;
    font-weight: 500;
}

/* Hero Content */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
}

.trust-badges li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0.9;
}

.trust-badges svg {
    fill: currentColor;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* ==========================================
   forgot-password SECTION
   ========================================== */

.forgot-password-section {
    flex: 1;
    padding: var(--space-2xl) var(--space-lg) var(--space-2xl);
    background-color: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

/* ==========================================
   forgot-password CARD
   ========================================== */

.forgot-password-card {
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.forgot-password-card:hover {
    box-shadow: var(--shadow-xl);
}

.card-header {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ==========================================
   FORM
   ========================================== */

.forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 0.75rem var(--space-md);
    border-radius: var(--radius-md);
    background-color: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--gray-900);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all var(--transition-base);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input:hover {
    border-color: var(--gray-400);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(138, 193, 195, 0.2);
}

.form-input:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-hint {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.link-secondary {
    font-size: 0.875rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.link-secondary:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem var(--space-xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

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

.btn-contrast {
    background-color: var(--bg-contrast);
    color: var(--white);
    border-color: var(--primary);
}

.btn-contrast.resend-verification-btn {
    animation: pulse-contrast 1.75s ease-in-out infinite;
}

@keyframes pulse-contrast {
    0% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }

    50% {
        transform: translateY(-1px);
        box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.08);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-primary:disabled {
    background-color: var(--gray-400);
    border-color: var(--gray-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-block {
    width: 100%;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
}

.signup-prompt {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.link-primary {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.link-primary:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ==========================================
   INFO PANEL
   ========================================== */

.info-panel {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
}

.info-panel>* {
    position: relative;
    z-index: 1;
}

.info-panel h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.info-panel p {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: var(--space-lg);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.feature-item svg {
    fill: currentColor;
    flex-shrink: 0;
    opacity: 0.9;
    width: 22px;
    height: 22px;
}

.feature-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==========================================
   FOOTER
   ========================================== */

.forgot-password-footer {
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: var(--space-lg) var(--space-lg);
    text-align: center;
    margin-top: auto;
}

.forgot-password-footer p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

/* ==========================================
   UTILITIES & ACCESSIBILITY
   ========================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles para acessibilidade */
.btn:focus-visible,
.form-input:focus-visible,
.checkbox-label input:focus-visible,
.link-primary:focus-visible,
.link-secondary:focus-visible,
.breadcrumb a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Hidden utility */
[hidden] {
    display: none !important;
}