{% extends 'rental_app/base_rental.html' %}

{% block title %}Password Reset Complete | Rent in Sri Lanka{% endblock %}

{% block content %}

<style>
    .rental-reset-complete-page {
        position: relative;
        min-height: 100vh;
        padding: 6rem 0;
        background:
            radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 34%),
            radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.16), transparent 32%),
            linear-gradient(135deg, #082f49 0%, #075985 52%, #164e63 100%);
        color: #fff;
        overflow: hidden;
    }

    .rental-reset-complete-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 35%),
            radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.10), transparent 28%);
        pointer-events: none;
    }

    .rental-reset-complete-page::after {
        content: "";
        position: absolute;
        right: -160px;
        bottom: -180px;
        width: 480px;
        height: 480px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        pointer-events: none;
    }

    .rental-reset-complete-page .container {
        position: relative;
        z-index: 2;
    }

    .rental-complete-card {
        max-width: 780px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 36px;
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.35);
    }

    .rental-complete-card-inner {
        padding: 3rem 2.4rem;
        text-align: center;
    }

    .rental-complete-icon {
        width: 100px;
        height: 100px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 36px;
        background: linear-gradient(135deg, #dbeafe, #cffafe);
        color: #075985;
        font-size: 2.8rem;
        box-shadow: 0 18px 36px rgba(7, 89, 133, 0.16);
        margin-bottom: 1.4rem;
    }

    .rental-complete-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.45rem 0.95rem;
        border-radius: 999px;
        background: #eff6ff;
        color: #075985;
        font-size: 0.84rem;
        font-weight: 800;
        margin-bottom: 1rem;
    }

    .rental-complete-card h1 {
        color: #0f172a;
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 900;
        letter-spacing: -0.035em;
        margin-bottom: 1rem;
    }

    .rental-complete-card p {
        color: #475569;
        font-size: 1.02rem;
        line-height: 1.75;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .rental-complete-note {
        margin-top: 1.5rem;
        padding: 1.1rem 1.2rem;
        border-radius: 22px;
        background: #eff6ff;
        border: 1px solid #bae6fd;
        color: #0c4a6e;
        text-align: left;
        line-height: 1.65;
    }

    .rental-complete-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.85rem;
        margin-top: 2rem;
    }

    .rental-complete-btn-primary {
        background: linear-gradient(135deg, #075985, #0f766e);
        color: #fff;
        border: none;
        border-radius: 48px;
        padding: 0.9rem 1.45rem;
        font-weight: 800;
        text-decoration: none;
        box-shadow: 0 16px 32px rgba(7, 89, 133, 0.24);
    }

    .rental-complete-btn-primary:hover {
        color: #fff;
        background: linear-gradient(135deg, #0369a1, #0d9488);
    }

    .rental-complete-btn-outline {
        border: 2px solid #075985;
        color: #075985;
        background: #ffffff;
        border-radius: 48px;
        padding: 0.85rem 1.45rem;
        font-weight: 800;
        text-decoration: none;
    }

    .rental-complete-btn-outline:hover {
        background: #075985;
        color: #fff;
    }

    @media (max-width: 768px) {
        .rental-reset-complete-page {
            padding: 4rem 0;
        }

        .rental-complete-card-inner {
            padding: 2.2rem 1.35rem;
        }

        .rental-complete-card {
            border-radius: 28px;
        }
    }
</style>

<section class="rental-reset-complete-page">
    <div class="container">
        <div class="rental-complete-card">
            <div class="rental-complete-card-inner">

                <div class="rental-complete-icon">
                    <i class="bi bi-shield-check"></i>
                </div>

                <span class="rental-complete-badge">
                    <i class="bi bi-check-circle-fill"></i>
                    Password Updated
                </span>

                <h1>Your Password Has Been Reset</h1>

                <p>
                    Your new password has been saved successfully.
                    You can now sign in to your <strong>Rental Owner</strong> account
                    and continue managing your property listings in the Rent in Sri Lanka portal.
                </p>

                <div class="rental-complete-note">
                    <strong>Ready to continue?</strong><br>
                    Sign in again using your email and new password to access
                    your Rental Owner Dashboard.
                </div>

                <div class="rental-complete-actions">
                    <a href="{% url 'rental_app:rental_owner_login' %}"
                       class="rental-complete-btn-primary">
                        Sign In Now
                    </a>

                    <a href="{% url 'rental_app:home_rental' %}"
                       class="rental-complete-btn-outline">
                        Back to Rental Home
                    </a>
                </div>

            </div>
        </div>
    </div>
</section>

{% endblock %}