{% load static i18n %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% trans "Password Changed" %} - KAAUH ATS</title>

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" crossorigin="anonymous">

    {% get_current_language as LANGUAGE_CODE %}

    <style>
        /* -------------------------------------------------------------------------- */
        /* CUSTOM TEAL THEME OVERRIDES (Consistent with your UI)                        */
        /* -------------------------------------------------------------------------- */
        :root {
            --bs-primary: #00636e; /* Dark Teal */
            --bs-primary-rgb: 0, 99, 110;
            --bs-primary-light: #007a88; /* Lighter Teal for hover */
            --bs-body-bg: #f8f9fa;
            --bs-body-color: #212529;
        }

        body { font-family: 'Inter', sans-serif; background-color: var(--bs-body-bg); }
        .left-panel { flex: 1; background: url("{% static 'image/kaauh_banner.png' %}") no-repeat center center; background-size: cover; position: relative; display: flex; align-items: flex-end; padding: 3rem; color: white; z-index: 1; }
        .left-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%); z-index: 0; }
        .left-panel-content { position: relative; z-index: 2; }
        .right-panel { background-color: white; padding: 3rem; }
        .btn-primary { background-color: var(--bs-primary); border-color: var(--bs-primary); font-weight: 600; border-radius: 0.5rem; box-shadow: 0 4px 8px rgba(0, 99, 110, 0.2); transition: all 0.2s ease; }
        .btn-primary:hover { background-color: var(--bs-primary-light); border-color: var(--bs-primary-light); box-shadow: 0 6px 10px rgba(0, 99, 110, 0.3); }
        .text-accent { color: var(--bs-primary) !important; }
        .text-success-accent { color: #28a745 !important; } /* Standard green for success */

        @media (min-width: 992px) {
            .right-panel-col { flex: 0 0 450px; }
            .right-panel-col > .d-flex { height: 100%; justify-content: center; align-items: center; padding-top: 0; padding-bottom: 0; }
            .right-panel-content-wrapper { max-width: 350px; width: 100%; }
        }
    </style>
</head>
<body>

    <div class="d-flex vh-100 w-100">

        <div class="left-panel d-none d-lg-flex flex-grow-1">
            <div class="left-panel-content">
                <h1 class="text-4xl font-weight-bold mb-4" style="font-size: 1.5rem;">
                    <span class="text-white">
                        <div class="hospital-text text-center text-md-start me-3">
                            <div class="ar small">{% trans "جامعة الأميرة نورة بنت عبدالرحمن الأكاديمية" %}</div>
                            <div class="ar small">{% trans "ومستشفى الملك عبدالله بن عبدالعزيز التخصصي" %}</div>
                            <div class="en small">{% trans "Princess Nourah bint Abdulrahman University" %}</div>
                            <div class="en small">{% trans "King Abdullah bin Abdulaziz University Hospital" %}</div>
                        </div>
                    </span>
                </h1>
                <small>Powered By TENHAL | تنحل</small>
            </div>
        </div>

        <div class="d-flex flex-column right-panel right-panel-col flex-grow-1 align-items-center justify-content-center">

            <div class="right-panel-content-wrapper text-center">

                <i class="fas fa-check-circle text-success-accent mb-4" style="font-size: 3rem;"></i>

                <h2 class="h3 fw-bold mb-3 text-accent">{% trans "Password Changed Successfully" %}</h2>

                <p class="text-muted mb-4">
                    {% trans "Your password has been set. You can now use your new password to sign in." %}
                </p>
                
                <div class="d-grid mt-4">
                    <a href="{% url 'account_login' %}" class="btn btn-primary btn-lg">
                        <i class="fas fa-sign-in-alt me-2"></i> {% trans "Go to Sign In" %}
                    </a>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" crossorigin="anonymous"></script>
</body>
</html>