@import "uyfont.css";

:root {
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-color: #f0f4ff;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.04);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --white: #fff;
    --light-gray: #f1f5f9;
    --animation-duration: 0.35s;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-blur: blur(20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ALKATIP Basma Tom', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 30%, #f5f3ff 60%, #f0f9ff 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ========== Header ========== */
header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 50;
    direction: rtl;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    margin-right: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--animation-duration);
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.06);
}

/* ========== Main Content ========== */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}

.container {
    max-width: 100%;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    height: auto;
    min-height: calc(100vh - 180px);
    justify-content: center;
    align-items: center;
}

/* ========== Login Card ========== */
.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent), var(--secondary));
}

.login-card .logo {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
}

.title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 14px;
}

/* ========== Form ========== */
.form-group {
    margin-bottom: 20px;
    position: relative;
    direction: rtl;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(248, 250, 252, 0.8);
    transition: all var(--animation-duration);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: #fff;
}

.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-input {
    flex: 1;
}

.captcha-btn {
    flex-shrink: 0;
    width: 120px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: none;
    border-radius: 12px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--animation-duration);
    font-weight: 500;
}

.captcha-btn:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary));
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--animation-duration);
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    letter-spacing: 0.3px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

.login-btn:active {
    transform: translateY(0);
}

/* ========== Footer Links ========== */
.footer-links {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    font-size: 13px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--animation-duration);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.account-tip,
.register-tip {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 18px;
}

.account-tip a,
.register-tip a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

/* ========== Input Icon ========== */
.input-icon {
    position: absolute;
    left: 16px;
    top: 16px;
    color: #94a3b8;
    cursor: pointer;
    transition: color var(--animation-duration);
}

.input-icon:hover {
    color: var(--primary-color);
}

/* ========== Fixed Footer ========== */
.footer-fixed {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content span {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-content .footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 15px;
    font-size: 12px;
    transition: color var(--animation-duration);
}

.footer-content .footer-links a:hover {
    color: var(--primary-color);
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px;
        gap: 12px;
    }

    .nav-links {
        width: 100%;
        justify-content: space-around;
    }

    .nav-links a {
        margin: 0;
        padding: 6px 10px;
        font-size: 12px;
    }

    .login-card {
        padding: 32px 22px;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 24px 18px;
        margin: 20px auto;
        border-radius: 16px;
    }

    .title {
        font-size: 18px;
    }

    .subtitle {
        margin-bottom: 24px;
    }

    .form-control {
        padding: 12px 14px;
    }

    .login-btn {
        padding: 13px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .footer-content .footer-links a {
        margin: 0 8px;
    }
}
