/* Password Retrieval page - matches app colour scheme (Login / Signup) */

:root {
    --primary-red: #DC143C;
    --dark-red: #B71C1C;
    --purple: #7B2CBF;
    --light-purple: #9D4EDD;
    --white: #FFFFFF;
    --text-dark: #333333;
    --card-bg: #2c0f61;
    --btn-primary: #071a78;
    --btn-primary-hover: #0a2288;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    color: var(--white);
}

.forgot-password-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    position: relative;
    padding: max(env(safe-area-inset-top), 20px) max(env(safe-area-inset-right), 20px) max(env(safe-area-inset-bottom), 24px) max(env(safe-area-inset-left), 20px);
}

.forgot-header,
.forgot-logo-wrap,
.forgot-form-card,
.forgot-footer-links {
    position: relative;
    z-index: 1;
}

/* Header */
.forgot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 20px;
}

.forgot-back {
    color: var(--white);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
}

.forgot-back:hover {
    color: var(--white);
    opacity: 0.9;
}

.forgot-back span {
    margin-right: 2px;
}

.forgot-lang-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    font-size: 14px;
}

.forgot-lang-wrap .bi-globe {
    font-size: 16px;
}

.forgot-lang {
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 4px 4px 0;
    appearance: none;
    -webkit-appearance: none;
}

.forgot-lang option {
    background: var(--card-bg);
    color: var(--white);
}

.forgot-lang:focus {
    outline: none;
}

.lang-arrow {
    font-size: 12px;
    opacity: 0.9;
}

/* Logo */
.forgot-logo-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.forgot-logo-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.forgot-logo-text {
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Form card - same as login/signup card */
.forgot-form-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 28px;
}

.forgot-field {
    margin-bottom: 16px;
}

.forgot-field:last-of-type {
    margin-bottom: 20px;
}

.forgot-input-wrap {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    padding: 0 14px;
    min-height: 48px;
}

.forgot-input-wrap:focus-within {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.2);
}

.forgot-icon {
    color: var(--purple);
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.forgot-prefix {
    color: var(--text-dark);
    font-size: 15px;
    margin-right: 8px;
    flex-shrink: 0;
}

.forgot-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-dark);
    padding: 14px 0;
    min-width: 0;
}

.forgot-input::placeholder {
    color: #999;
}

.forgot-input:focus {
    outline: none;
}

/* SMS row: input + Send button */
.forgot-sms-wrap {
    padding-right: 8px;
}

.forgot-sms-input {
    flex: 1;
    min-width: 0;
}

.forgot-send-btn {
    background: var(--btn-primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(7, 26, 120, 0.35);
}

.forgot-send-btn:hover:not(:disabled) {
    background: var(--btn-primary-hover);
    transform: translateY(-1px);
}

.forgot-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Submit button - same as login button */
.forgot-submit-btn {
    width: 100%;
    background: var(--btn-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(7, 26, 120, 0.4);
}

.forgot-submit-btn:hover:not(:disabled) {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 26, 120, 0.5);
}

.forgot-submit-btn:active {
    transform: translateY(0);
}

.forgot-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer links - white like login/signup */
.forgot-footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.forgot-footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.forgot-footer-link:hover {
    color: var(--white);
    opacity: 0.9;
}

@media (min-width: 400px) {
    .forgot-form-card {
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
}
