/* Hide global components */
header, .navbar, .top-bar, footer, #chat-bubble { 
    display: none !important; 
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Inter', -apple-system, sans-serif;
    overflow: hidden;
}

/* Full screen background with same gradient as login */
body {
    background: radial-gradient(circle at top right, #1e4ba1, #133880);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-forgot-page {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
}

.forgot-right {
    width: 100%;
    max-width: 420px; /* match login max-width */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

/* Branding */
.brand { text-align: center; margin-bottom: 1rem; }
.brand-logos { display: flex; justify-content: center; gap: 0.8rem; margin-bottom: 0.3rem; }
.brand-logos .brand-logo { height: 45px; width: auto; object-fit: contain; }
.brand h1 { font-size: 1.5rem; font-weight: 700; color: #133880; margin: 10px 0 0 0; letter-spacing: -0.02em; }

/* Form rows with icons */
.form-row {
    position: relative;
    margin-bottom: 1rem;
}

/* Input fields */
.form-row input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    font-size: 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Left icon: vertically centered */
.form-row .input-icon {
    position: absolute;
    left: 12px;
    top: 70%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* Right toggle password */
.form-row .toggle-password {
    position: absolute;
    right: 12px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

/* Placeholder & focus */
.form-row input::placeholder { color: #aaa; }
.form-row input:focus { border-color: #133880; outline: none; box-shadow: 0 0 0 4px rgba(19,56,128,0.08); }

/* Buttons & links */
.form-actions { 
    margin-top: 1.5rem; 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
}
.form-actions .btn { 
    padding: 0.85rem; 
    font-size: 1rem; 
    font-weight: 600; 
    border-radius: 10px; 
    border: none;
    background: #133880; 
    color: #fff; 
    cursor: pointer;
    transition: all 0.3s; 
    box-shadow: 0 4px 6px -1px rgba(19, 56, 128, 0.2);
}
.form-actions .btn:hover { 
    background: #007bff; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 15px -3px rgba(19, 56, 128, 0.3);
}
.form-actions .link { 
    font-size: 0.9rem; 
    text-align: center; 
    color: #64748b;
    text-decoration: none;
}
.form-actions .link:hover { color: #133880; text-decoration: underline; }

/* Social forgot */
.social-forgot { text-align: center; margin-top: 1rem; }
.social-forgot p { font-size: 0.8rem; margin-bottom: 0.3rem; }
.social-forgot a { padding: 0.35rem 0.7rem; font-size: 0.8rem; background-color: #eee; border-radius: 4px; margin: 0 0.2rem; }

/* Register */
.register { text-align: center; margin-top: 1.2rem; font-size: 0.8rem; }

/* Footer */
.custom-footer {
    position: fixed;
    bottom: 14px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body { overflow-y: auto; }
    .forgot-right { width: 92%; padding: 22px; }
}

@media (max-width: 480px) {
    .forgot-right { width: 96%; padding: 16px; }
    .brand-logos .brand-logo { max-width: 56px; }
}
