﻿/* ===== FONT ===== */
@font-face {
    font-family: "Vazirmatn";
    src: url("../lib/Fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-style: normal;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a2b5e 0%, #1e4a8a 50%, #2c6e9e 100%);
    position: relative;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

    /* ===== BACKGROUND PATTERNS ===== */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 8px), repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 12px);
        pointer-events: none;
        z-index: 0;
    }

    body::after {
        content: '';
        position: fixed;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 20% 40%, rgba(255,255,255,0.08) 0%, transparent 50%);
        pointer-events: none;
        animation: pulseGlow 8s ease-in-out infinite;
        z-index: 0;
    }

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* ===== PARTICLES ===== */
.particle {
    position: fixed;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle linear infinite;
    z-index: 0;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== CARD ===== */
.track-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 2.5rem 2.5rem 2rem;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15);
    animation: slideUp 0.7s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.university-logo img {
    width: 110px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}
    .track-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HEADER ===== */
.track-card .card-header-custom {
    text-align: center;
    margin-bottom: 1.8rem;
}

    .track-card .card-header-custom h2 {
        color: #0a2b5e;
        font-size: 1.6rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

        .track-card .card-header-custom h2 i {
            color: #1e4a8a;
            font-size: 1.6rem;
        }

    .track-card .card-header-custom .sub-header {
        color: #6c86a3;
        font-size: 0.9rem;
        margin-top: 4px;
    }

/* ===== FORM ===== */
.track-form .form-group {
    margin-bottom: 1.2rem;
}

.track-form label {
    display: block;
    font-weight: 500;
    color: #1e3a5f;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

    .track-form label i {
        margin-left: 8px;
        color: #2c6e9e;
        width: 20px;
    }

.track-form .form-control {
    padding: 12px 16px;
    border: 2px solid #e8edf4;
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8faff;
    color: #0a2b5e;
}

    .track-form .form-control:focus {
        border-color: #1e4a8a;
        outline: none;
        box-shadow: 0 0 0 4px rgba(30, 74, 138, 0.12);
        background: white;
    }

    .track-form .form-control::placeholder {
        color: #a0b4c9;
        font-size: 0.9rem;
    }

    .track-form .form-control[dir="ltr"] {
        text-align: left;
    }

/* ===== DIVIDER ===== */
.or-divider {
    text-align: center;
    color: #94a8c0;
    font-size: 0.85rem;
    margin: 1.2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 16px;
}

    .or-divider::before,
    .or-divider::after {
        content: '';
        flex: 1;
        height: 1.5px;
        background: linear-gradient(90deg, transparent, #dce4ed, transparent);
    }

/* ===== BUTTON ===== */
.btn-track {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0a2b5e, #1e4a8a);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(10, 43, 94, 0.25);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

    .btn-track::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.5s, height 0.5s;
    }

    .btn-track:hover::before {
        width: 400px;
        height: 400px;
    }

    .btn-track:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(10, 43, 94, 0.35);
    }

    .btn-track:active {
        transform: translateY(0);
    }

    .btn-track:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

/* ===== BACK LINK ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    color: #6c86a3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 30px;
}

    .back-link i {
        transition: transform 0.3s ease;
    }

    .back-link:hover {
        color: #0a2b5e;
        background: rgba(10, 43, 94, 0.06);
    }

        .back-link:hover i {
            transform: translateX(-4px);
        }

/* ===== SWEET ALERT RTL ===== */
.swal-popup-rtl {
    direction: rtl;
    font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
}

    .swal-popup-rtl .swal2-title {
        font-weight: 700;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .track-card {
        padding: 1.8rem 1.2rem 1.5rem;
        border-radius: 24px;
        margin: 0;
    }

        .track-card .card-header-custom h2 {
            font-size: 1.3rem;
        }

            .track-card .card-header-custom h2 i {
                font-size: 1.3rem;
            }

    .track-form .form-control {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .btn-track {
        font-size: 0.95rem;
        padding: 12px 16px;
    }

    body {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .track-card {
        padding: 1.5rem 1rem 1.2rem;
        border-radius: 20px;
    }

        .track-card .card-header-custom h2 {
            font-size: 1.15rem;
        }

            .track-card .card-header-custom h2 i {
                font-size: 1.1rem;
            }

    .track-form .form-control {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .btn-track {
        font-size: 0.9rem;
        padding: 11px 14px;
    }

    .back-link {
        font-size: 0.8rem;
    }

    .or-divider {
        font-size: 0.75rem;
        margin: 0.8rem 0;
    }
}
