/* --- Unified Authentication Stylesheet (MedLearn) --- */

.auth-page-container {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 0;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

/* Dashboard-style Card */
.auth-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Themed Brand Accent Icon */
.auth-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.auth-icon.tint-blue {
    background: #F0F4FA;
    color: var(--brand-primary);
}

.auth-icon.tint-green {
    background: #EEF4F0;
    color: var(--highlight-green-text);
}

/* Form Headings */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Input Fields and Layout */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 16px;
    padding-right: 46px; /* spacing for icon in RTL */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(26, 108, 232, 0.1);
}

.input-icon-wrapper:focus-within .input-icon {
    color: var(--brand-primary);
}

/* Dashboard-style Buttons */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-blue {
    background-color: var(--brand-primary);
}

.btn-blue:hover {
    background-color: var(--brand-primary-hover);
}

.btn-green {
    background-color: var(--highlight-green-text);
}

.btn-green:hover {
    background-color: #15803d;
}

/* Footer Links inside Card */
.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    gap: 6px;
}

.auth-footer a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: var(--highlight-red-bg);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--highlight-red-text);
}

.alert-error i {
    font-size: 1.1rem;
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Back Link styling */
.back-to-home {
    margin-top: 32px;
    text-align: center;
}

.back-to-home a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-to-home a:hover {
    color: var(--brand-primary);
}