@font-face {
    font-family: "iransans";
    src: url("../fonts/IRANSansWeb_Light.woff") format("woff");
}

* body {
    font-family: iransans;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#layout-wrapper {
    position: relative;
    z-index: 1;
}

.auth-page {
    position: relative;
    z-index: 2;
}

.card {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-wrapper {
    position: relative;
    z-index: 1;
}

.noble-ui-logo {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    text-align: center;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

h5.text-muted {
    text-align: center;
    color: #6c757d;
    font-weight: 400;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 0.85rem 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    background: #fff;
}

.form-control:hover {
    border-color: #ced4da;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
    opacity: 0.7;
}

.btn-outline-primary {
    border-radius: 12px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    border: 2px solid #667eea;
    color: #667eea;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 100%;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline-primary:hover::before {
    left: 0;
    animation: gradientShift 2s ease infinite;
}

.btn-outline-primary:hover {
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-icon-prepend {
    margin-left: 0.5rem;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    animation: slideDown 0.4s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-primary {
    color: #667eea !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.text-primary:hover {
    color: #764ba2 !important;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .noble-ui-logo {
        font-size: 2rem;
    }
    
    .card {
        border-radius: 15px;
        margin: 1rem;
    }
    
    .auth-form-wrapper {
        padding: 2rem 1.5rem !important;
    }
}

/* Loading animation for button */
.btn-outline-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus visible for accessibility */
.form-control:focus-visible,
.btn-outline-primary:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

