/* ========================================
   Yemen University - Portal Login Styles
   ======================================== */

.portal-body {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.portal-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left Side */
.portal-left {
    background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 50%, #0d2d4a 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: white;
    position: relative;
    overflow: hidden;
}

.portal-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.portal-brand {
    position: relative;
    z-index: 1;
}

.portal-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.portal-logo svg {
    flex-shrink: 0;
}

.portal-logo-ar {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.portal-logo-en {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
    font-family: var(--font-en);
}

.portal-quote {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.portal-quote blockquote {
    margin: 0;
}

.portal-quote p {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.portal-quote footer {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
}

.portal-stats {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 40px;
}

.portal-stat {
    display: flex;
    flex-direction: column;
}

.portal-stat span:first-child {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    font-family: var(--font-en);
}

.portal-stat span:last-child {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* Right Side */
.portal-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.portal-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.portal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.portal-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.portal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portal-form .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
}

.portal-form .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font-ar);
    color: var(--text-primary);
    background: white;
    transition: var(--transition);
}

.portal-form .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 33, 55, 0.08);
}

.portal-form .form-group input::placeholder {
    color: var(--text-muted);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    text-decoration: underline;
}

.portal-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.portal-divider::before,
.portal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.portal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.portal-link:hover {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.portal-link svg {
    color: var(--text-tertiary);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-tertiary);
    transition: var(--transition);
}

.back-home:hover {
    color: var(--text-primary);
}

.back-home svg {
    transition: var(--transition);
}

.back-home:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .portal-wrapper {
        grid-template-columns: 1fr;
    }

    .portal-left {
        display: none;
    }

    .portal-right {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .portal-right {
        padding: 24px 16px;
    }

    .portal-title {
        font-size: 24px;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
