@font-face {
    font-family: 'Isans';
    src: url('../fonts/IRANSansWeb.eot');  /* IE6–8 */
    src: url('../fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/IRANSansWeb.ttf') format('truetype');
}
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Isans, Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2d3436;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 450px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.logo {
    width: 80px;
    margin-bottom: 20px;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 20px;
}
.form-title{
    display: block;
    padding: 10px;
    text-align: right;
}
.input-group {
    margin-bottom: 10px;
    text-align: right;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.forgot-password {
    display: block;
    text-align: left;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.login-btn {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(108, 92, 231, 0.6);
}

.divider {
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    z-index: 1;
}

.divider span {
    background-color: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
    color: #777;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.social-btn a img{
    padding: 0;
    margin: 0;
    vertical-align: middle;
}
.register-link {
    margin-top: 25px;
    font-size: 14px;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register-link a:hover {
    color: var(--accent-color);
}
.input-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e3e7;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    text-align: center;
    letter-spacing: 3px;
}

.input-field:focus {
    border-color: #3498db;
    outline: none;
}
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.captcha-code {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    background-color: #eef2f7;
    padding: 8px 15px;
    border-radius: 6px;
    flex: 1;
    text-align: center;
    letter-spacing: 5px;
}

.captcha-refresh-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #3498db;
    cursor: pointer;
    padding: 5px;
}
.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
    text-align: center;
}

.input-error {
    border-color: #e74c3c !important;
}


.loading-dots {
    display: block;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    margin: 0 3px;
    opacity: 0;
    animation: fadeInOut 1.5s infinite ease-in-out;
}
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.error-box {
    background-color: white;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: all 0.3s;
}

.error-header {
    background: linear-gradient(135deg, #ff5e57, #ff2d55);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.error-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.error-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.error-body {
    padding: 25px;
    text-align: center;
    color: #555;
    line-height: 1.6;
}

.error-footer {
    display: flex;
    justify-content: center;
    padding: 0 25px 25px;
}
.active {
    opacity: 1;
    visibility: visible;
}

.active .error-box {
    transform: translateY(0);
}
@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 10px 20px;
    }
    
}