@charset "UTF-8";
/**
 * Cyvate - Forgot Password CSS
 * パスワードリセットページ
 * /assets/css/reset/forgot_password.css
 */

/* ==========================================================================
   Simple Header Mode
   ========================================================================== */
body.simple-header-mode {
    padding-top: 70px;
}

body.simple-header-mode .demo-banner {
    display: none !important;
}

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --asagi: #00a3af;
    --asagi-light: #00d4e4;
    --asagi-lighter: #e6f7f8;
    --asagi-dark: #008891;
    --asagi-darker: #006d75;
    --asagi-glow: rgba(0, 163, 175, 0.4);
    --white: #ffffff;
    --gray-50: #f8fafa;
    --gray-100: #e8f0f1;
    --gray-200: #d1dfe0;
    --gray-300: #a8bfc2;
    --gray-400: #7a9a9e;
    --gray-500: #5a7d81;
    --gray-600: #456468;
    --gray-700: #2d4a54;
    --dark: #0a1214;
    --success: #10B981;
    --success-light: rgba(16, 185, 129, 0.1);
    --error: #ef4444;
    --error-light: #fef2f2;
}

/* ==========================================================================
   Page Layout
   ========================================================================== */
.forgot-page {
    min-height: calc(100vh - 70px);
    position: relative;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ==========================================================================
   Background Decoration
   ========================================================================== */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(0, 163, 175, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 163, 175, 0.05) 0%, transparent 50%);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 163, 175, 0.12) 0%, transparent 70%);
    top: -150px;
    left: -150px;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 228, 0.08) 0%, transparent 70%);
    bottom: 10%;
    right: -100px;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 163, 175, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 163, 175, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ==========================================================================
   Form Container
   ========================================================================== */
.forgot-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
}

.forgot-card {
    background: var(--white);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.forgot-header {
    text-align: center;
    margin-bottom: 36px;
}

.forgot-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--asagi-lighter), rgba(0, 163, 175, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.forgot-icon img {
    width: 32px;
    height: 32px;
}

.forgot-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.forgot-description {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ==========================================================================
   Form
   ========================================================================== */
.forgot-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label img {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--gray-700);
    background: #f5fbfb;
    transition: all 0.3s ease;
}

.form-input:hover {
    background: #eef8f8;
}

.form-input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--asagi);
    box-shadow: 0 0 0 3px rgba(0, 163, 175, 0.12);
}

.form-input::placeholder {
    color: var(--gray-400);
}

/* ==========================================================================
   Submit Button
   ========================================================================== */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    background: linear-gradient(135deg, var(--asagi), var(--asagi-dark));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 163, 175, 0.3);
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 163, 175, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn .btn-icon {
    width: 18px;
    height: 18px;
}

.submit-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-btn.loading .spinner {
    display: block;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Back Link
   ========================================================================== */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px;
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    text-decoration: none;
}

.back-link:hover {
    color: var(--asagi);
    background: var(--asagi-lighter);
}

.back-link img {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.back-link:hover img {
    opacity: 1;
}

/* ==========================================================================
   Success State
   ========================================================================== */
.success-state {
    display: none;
    text-align: center;
}

.success-state.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon img {
    width: 40px;
    height: 40px;
}

.success-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.success-message {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 8px;
}

.success-email {
    font-weight: 600;
    color: var(--asagi);
}

.success-note {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: 8px;
    line-height: 1.6;
}

.form-state {
    display: block;
}

.form-state.hide {
    display: none;
}

/* ==========================================================================
   Footer Links
   ========================================================================== */
.footer-links {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--asagi);
}

.footer-links .divider {
    color: var(--gray-200);
    margin: 0 12px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 540px) {
    .forgot-card {
        padding: 36px 24px;
    }

    .forgot-title {
        font-size: 1.35rem;
    }

    .success-note {
        font-size: 0.8rem;
    }

    .success-note br {
        display: none;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-card {
    animation: fadeInUp 0.6s ease forwards;
}
