/* ========================================
   Forgot/Reset Password & Success Pages - Царский Сон
   ======================================== */

/* ========================================
   Base Styles
   ======================================== */


.container-1440 {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   Breadcrumbs
   ======================================== */
.breadcrumb-section {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-nav {
    padding: 1rem 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #C9A961;
}

.breadcrumb-current {
    color: #2E1500;
    font-size: 0.875rem;
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
    color: #d1d5db;
}

/* ========================================
   Forgot Password Page Layout
   ======================================== */
.forgot-password-page {
    min-height: calc(100vh - 60px);
    position: relative;
    background: linear-gradient(to bottom right, #FAF8F5, #FFF9F0, #F5F1EB);
    padding: 3rem 0;
    overflow: hidden;
}

.forgot-password-bg {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
}

.forgot-password-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.forgot-password-bg-circle-1 {
    top: -10%;
    right: 15%;
    width: 28rem;
    height: 28rem;
    background: #C9A961;
}

.forgot-password-bg-circle-2 {
    bottom: -5%;
    left: 15%;
    width: 24rem;
    height: 24rem;
    background: #A88B4D;
}

/* ========================================
   Forgot Password Wrapper
   ======================================== */
.forgot-password-wrapper {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* ========================================
   Forgot Password Card
   ======================================== */
.forgot-password-card {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(46, 21, 0, 0.08);
    padding: 2.5rem;
}

.forgot-password-header {
    text-align: center;
    margin-bottom: 2rem;
}

.forgot-password-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, #C9A961, #A88B4D);
    color: white;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.forgot-password-icon-lock {
    background: linear-gradient(to bottom right, #2E1500, #3E2510);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.forgot-password-title {
    font-size: 2rem;
    color: #2E1500;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.forgot-password-subtitle {
    color: #6b7280;
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ========================================
   Steps Indicator
   ======================================== */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-item.active .step-number {
    background: linear-gradient(to bottom right, #C9A961, #A88B4D);
    color: white;
    border-color: rgba(201, 169, 97, 0.3);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.step-item.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.step-item.active .step-label {
    color: #2E1500;
    font-weight: 600;
}

.step-line {
    height: 2px;
    width: 3rem;
    background: #e5e7eb;
    margin: 0 0.5rem;
}

.step-line.completed {
    background: linear-gradient(to right, #10b981, #C9A961);
}

/* ========================================
   Form Styles
   ======================================== */
.forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-info {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(201, 169, 97, 0.05);
    border-left: 4px solid #C9A961;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.form-info svg {
    color: #C9A961;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2E1500;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-label svg {
    color: #A88B4D;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #2E1500;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: #C9A961;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

.form-input.success {
    border-color: #10b981;
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.form-error.show {
    display: block;
}

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

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

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

/* ========================================
   Password Strength Indicator
   ======================================== */
.password-strength {
    display: none;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.password-strength.show {
    display: flex;
}

.password-strength-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.password-strength-bars {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.strength-bar {
    height: 0.5rem;
    flex: 1;
    background: #e5e7eb;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.password-strength.weak .strength-bar:nth-child(1) {
    background: #ef4444;
}

.password-strength.fair .strength-bar:nth-child(1),
.password-strength.fair .strength-bar:nth-child(2) {
    background: #f59e0b;
}

.password-strength.good .strength-bar:nth-child(1),
.password-strength.good .strength-bar:nth-child(2),
.password-strength.good .strength-bar:nth-child(3) {
    background: #10b981;
}

.password-strength.strong .strength-bar {
    background: #059669;
}

.password-strength-text {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.password-strength.weak .password-strength-text {
    color: #ef4444;
}

.password-strength.fair .password-strength-text {
    color: #f59e0b;
}

.password-strength.good .password-strength-text {
    color: #10b981;
}

.password-strength.strong .password-strength-text {
    color: #059669;
}

/* ========================================
   Password Requirements
   ======================================== */
.password-requirements {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.requirements-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2E1500;
    margin-bottom: 0.75rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    padding: 0.25rem 0;
}

.requirement-item svg {
    color: #e5e7eb;
    transition: color 0.3s ease;
}

.requirement-item.met svg {
    color: #10b981;
}

.requirement-item.met {
    color: #059669;
}

/* ========================================
   Submit Button
   ======================================== */
.forgot-password-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(to right, #C9A961, #A88B4D);
    color: white;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.forgot-password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.3);
}

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

.forgot-password-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   Footer Links
   ======================================== */
.forgot-password-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #C9A961;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #A88B4D;
    gap: 0.75rem;
}

/* ========================================
   Help Card
   ======================================== */
.help-card {
    display: none;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 2.5rem;
}

.help-card-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, rgba(201, 169, 97, 0.1), rgba(168, 139, 77, 0.1));
    color: #C9A961;
    border-radius: 50%;
    border: 2px solid rgba(201, 169, 97, 0.2);
}

.help-card-icon-security {
    background: linear-gradient(to bottom right, rgba(46, 21, 0, 0.05), rgba(62, 37, 16, 0.05));
    color: #2E1500;
    border-color: rgba(46, 21, 0, 0.1);
}

.help-card-title {
    font-size: 1.5rem;
    color: #2E1500;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.help-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.help-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.help-item svg {
    color: #C9A961;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.help-item-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2E1500;
    margin-bottom: 0.25rem;
}

.help-item-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.help-contact {
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.help-contact-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2E1500;
    margin-bottom: 1rem;
}

.help-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #C9A961;
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.help-contact-link:hover {
    color: #A88B4D;
}

.help-contact-link svg {
    color: #A88B4D;
}

/* ========================================
   Success Page
   ======================================== */
.success-page {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(to bottom right, #FAF8F5, #FFF9F0, #F5F1EB);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    overflow: hidden;
}

.success-bg {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
}

.success-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.success-bg-circle-1 {
    top: -15%;
    right: 10%;
    width: 35rem;
    height: 35rem;
    background: #C9A961;
}

.success-bg-circle-2 {
    bottom: -15%;
    left: 10%;
    width: 30rem;
    height: 30rem;
    background: #A88B4D;
}

.success-bg-circle-3 {
    top: 40%;
    left: 40%;
    width: 25rem;
    height: 25rem;
    background: #E5DCC8;
}

.success-wrapper {
    position: relative;
    z-index: 10;
    max-width: 700px;
    width: 100%;
}

.success-card {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 40px rgba(46, 21, 0, 0.12);
    padding: 3rem;
    text-align: center;
}

/* ========================================
   Success Animation
   ======================================== */
.success-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.success-checkmark {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: successPulse 1.5s ease-in-out;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #C9A961;
    border-radius: 50%;
    animation: particleFloat 2s ease-out forwards;
}

.particle:nth-child(1) {
    top: 50%;
    left: 50%;
    animation-delay: 0.3s;
}

.particle:nth-child(2) {
    top: 30%;
    left: 70%;
    animation-delay: 0.4s;
}

.particle:nth-child(3) {
    top: 70%;
    left: 30%;
    animation-delay: 0.5s;
}

.particle:nth-child(4) {
    top: 20%;
    left: 30%;
    animation-delay: 0.6s;
}

.particle:nth-child(5) {
    top: 80%;
    left: 70%;
    animation-delay: 0.7s;
}

.particle:nth-child(6) {
    top: 40%;
    left: 10%;
    animation-delay: 0.8s;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 50px), var(--ty, -50px)) scale(0);
        opacity: 0;
    }
}

.particle:nth-child(1) {
    --tx: 60px;
    --ty: -60px;
}

.particle:nth-child(2) {
    --tx: -50px;
    --ty: -70px;
}

.particle:nth-child(3) {
    --tx: 70px;
    --ty: 40px;
}

.particle:nth-child(4) {
    --tx: -60px;
    --ty: -40px;
}

.particle:nth-child(5) {
    --tx: 50px;
    --ty: 50px;
}

.particle:nth-child(6) {
    --tx: -70px;
    --ty: 30px;
}

/* ========================================
   Success Content
   ======================================== */
.success-content {
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

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

.success-title {
    font-size: 2rem;
    color: #2E1500;
    margin-bottom: 1rem;
    font-weight: 600;
}

.success-message {
    color: #6b7280;
    font-size: 1.0625rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* ========================================
   Success Info Cards
   ======================================== */
.success-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.success-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(to bottom right, rgba(201, 169, 97, 0.05), rgba(168, 139, 77, 0.05));
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 8px;
    text-align: left;
}

.success-info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A961;
    flex-shrink: 0;
}

.success-info-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2E1500;
    margin-bottom: 0.25rem;
}

.success-info-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   Success Actions
   ======================================== */
.success-actions {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.success-btn-primary {
    background: linear-gradient(to right, #C9A961, #A88B4D);
    color: white;
}

.success-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.3);
}

.success-btn-outline {
    background: transparent;
    border: 1px solid #C9A961;
    color: #A88B4D;
}

.success-btn-outline:hover {
    background: rgba(201, 169, 97, 0.1);
}

/* ========================================
   Success Tips
   ======================================== */
.success-tips {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 2rem;
}

.success-tips-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.success-tips-header svg {
    color: #C9A961;
}

.success-tips-header h3 {
    font-size: 1rem;
    color: #2E1500;
    font-weight: 600;
    margin: 0;
}

.success-tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.success-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #374151;
}

.success-tips-list li::before {
    content: '•';
    color: #C9A961;
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1;
}

/* ========================================
   Success Redirect
   ======================================== */
.success-redirect {
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.success-redirect p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.success-redirect #countdown {
    color: #C9A961;
    font-weight: 600;
}

.cancel-redirect {
    background: transparent;
    border: none;
    color: #C9A961;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cancel-redirect:hover {
    color: #A88B4D;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .forgot-password-card,
    .success-card {
        padding: 2rem;
    }

    .forgot-password-title,
    .success-title {
        font-size: 1.5rem;
    }

    .steps-indicator {
        padding: 0;
    }

    .step-line {
        width: 2rem;
    }

    .step-label {
        font-size: 0.625rem;
    }

    .success-info-grid {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }
}

@media (min-width: 1024px) {
    .forgot-password-page {
        padding: 4rem 0;
    }

    .forgot-password-wrapper {
        grid-template-columns: 1fr 400px;
        gap: 3rem;
    }

    .forgot-password-card {
        padding: 3rem;
    }

    .help-card {
        display: block;
    }

    .success-card {
        padding: 4rem;
    }

    .success-actions {
        flex-direction: row;
    }
}

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

.forgot-password-card,
.help-card {
    animation: fadeIn 0.6s ease;
}

.help-card {
    animation-delay: 0.2s;
}
