@import url('../../external.html?link=https://fonts.googleapis.com/css2?family=IranSans:wght@300;400;700&amp;display=swap');
        
:root {
    --mellat-blue: #005baa;
    --mellat-light-blue: #0077cc;
    --mellat-gold: #ffd700;
    --mellat-dark-blue: #003366;
}

body {
    font-family: 'IranSans', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
}

.header {
    background: linear-gradient(135deg, var(--mellat-dark-blue), var(--mellat-blue));
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.logo {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
}

.container {
    max-width: 800px;
    margin: -50px auto 2rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

h1 {
    color: white;
    text-align: center;
    margin: 0.5rem 0;
    font-size: 2rem;
    z-index: 2;
    position: relative;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--mellat-blue);
    font-size: 1.1rem;
    transition: all 0.3s;
}

input, select {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid #ddd;
    font-size: 16px;
    transition: all 0.3s;
    background: transparent;
}

input:focus {
    border-bottom-color: var(--mellat-light-blue);
    outline: none;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mellat-light-blue);
    transition: all 0.4s;
}

input:focus ~ .underline {
    width: 100%;
}

.btn {
    background: linear-gradient(to right, var(--mellat-blue), var(--mellat-light-blue));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    width: 100%;
    margin: 3rem auto 0;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,91,170,0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--mellat-light-blue), var(--mellat-blue));
    transition: all 0.4s;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,91,170,0.4);
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .loading-spinner {
    display: inline-block;
}

/* SweetAlert Custom Styles */
.swal2-confirm {
    padding: 0 !important;
}

.swal2-confirm a {
    color: white !important;
    text-decoration: none !important;
    display: block;
    width: 100%;
    height: 100%;
    padding: 8px 20px;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.floating {
    animation: floating 4s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

.slide-in {
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

.slide-in:nth-child(1) { animation-delay: 0.1s; }
.slide-in:nth-child(2) { animation-delay: 0.3s; }
.slide-in:nth-child(3) { animation-delay: 0.5s; }
.slide-in:nth-child(4) { animation-delay: 0.7s; }

.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end);
    z-index: 2;
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        margin: -30px 1rem 1rem;
    }
    
    .header {
        padding: 3rem 0;
        height: 250px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}