* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Prompt', sans-serif;
            background-color: #f8f5f5;
            min-height: 80vh;
            display: flex;
            flex-direction: column;
        }

        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        main {
            flex-grow: 1;
            padding: 32px 0;
            display: flex;
            flex-direction: column;
        }

        .forgot-container-wrapper {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 450px;
            /* ให้ดู balance เหมือน login */
        }

        .forgot-container {
            width: 100%;
            max-width: 460px;
            background-color: #fff;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23a31e25' fill-opacity='0.03'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            border-radius: 12px;
            box-shadow: 0 10px 25px -5px rgba(163, 30, 37, 0.1), 0 10px 10px -5px rgba(163, 30, 37, 0.04);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            position: relative;
        }

        .forgot-decoration {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 8px;
            background: linear-gradient(90deg, #a31e25, #d97a7e);
        }

        .forgot-decoration-circle {
            position: absolute;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(163, 30, 37, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
        }

        .circle-1 {
            top: -50px;
            left: -50px;
            width: 150px;
            height: 150px;
        }

        .circle-2 {
            bottom: -30px;
            right: -30px;
            width: 100px;
            height: 100px;
        }

        .forgot-content {
            padding: 40px 48px;
            position: relative;
            z-index: 1;
        }

        .forgot-title {
            font-size: 1.18rem;
            font-weight: 700;
            color: #a31e25;
            margin-bottom: 12px;
            position: relative;
            display: inline-block;
        }

        .forgot-title:after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 40px;
            height: 3px;
            background-color: #a31e25;
            border-radius: 3px;
        }

        .forgot-subtitle {
            color: #6b7280;
            margin-bottom: 28px;
            font-weight: 300;
        }

        .forgot-form-container {
            background-color: #ffffff;
            padding: 24px;
            border-radius: 8px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }

        .form-group {
            margin-bottom: 22px;
            position: relative;
        }

        .form-group label {
            display: block;
            color: #4b5563;
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .form-group input {
            width: 100%;
            padding: 10px 16px;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            background-color: #f9fafb;
            color: #1f2937;
            font-size: 16px;
            transition: all 0.3s;
        }

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

        .form-group input:focus {
            outline: none;
            border-color: #a31e25;
            box-shadow: 0 0 0 3px rgba(163, 30, 37, 0.1);
            background-color: #ffffff;
        }

        .form-group .input-icon {
            position: absolute;
            right: 16px;
            top: 38px;
            color: #9ca3af;
        }

        .forgot-button {
            width: 100%;
            background-color: #a31e25;
            color: white;
            font-weight: 500;
            padding: 10px 16px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .forgot-button:hover {
            background-color: #7a1921;
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgba(163, 30, 37, 0.2);
        }

        .error-message,
        .success-message {
            color: #c00303;
            background: #fff3f3;
            border: 1px solid #f199a3;
            border-radius: 8px;
            padding: 12px 15px;
            margin-bottom: 18px;
            font-size: 15px;
            text-align: center;
            display: none;
            box-shadow: 0 1px 8px #f5bdbd2c;
            font-weight: 500;
        }

        .success-message {
            color: #128100;
            background: #eaffea;
            border: 1px solid #77d486;
        }

        .back-to-login {
            display: block;
            text-align: center;
            margin-top: 26px;
        }

        .back-to-login a {
            color: #2252a2;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.16s;
        }

        .back-to-login a:hover {
            color: #a31e25;
            text-decoration: underline;
        }

        footer {
            color: #666;
            text-align: center;
            font-size: 0.85rem;
            padding: 12px 0 16px 0;
            border-top: 1px solid #e2eaf1;
            margin-top: 0;
            box-shadow: 0 -1px 8px #e2eaf10c;
            letter-spacing: 0.01em;
        }

        .footer-content {
            line-height: 1.6;
        }

        @media (max-width: 720px) {
            .forgot-content {
                padding: 22px 12px;
            }

            .forgot-form-container {
                padding: 10px;
            }
        }
