@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: bold;
  src: url('../font/IRANSansWeb_Light.woff');
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: IRANSans;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.swal2-confirm, .swal2-styled {
  font-family: IRANSans !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.info-section {
    flex: 1;
    padding: 50px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-section {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
}

.login-section .logo {
    color: #1e3c72;
    margin-bottom: 30px;
}

.logo i {
    font-size: 2rem;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.switch-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 6px;
    border-radius: 10px;
}

.switch-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6c757d;
}

.switch-tab.active {
    background: white;
    color: #1e3c72;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.switch-tab i {
    font-size: 1.2rem;
}

.login-panel {
    display: none;
}

.login-panel.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #adb5bd;
}

.char-counter-badge {

    position: absolute;
    left: 10px;
    top: 49px !important;
    width: 25px;
    color: #a1a1a1;

}

.disabled {

    cursor: default !important;
    opacity: 50%;
    
}


.password-group .form-input {
    padding-right: 16px;
    padding-left: 50px;
}

.toggle-password {
    position: absolute;
    left: 16px;
    top: 62px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #1e3c72;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.2);
}

.login-button.manager {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.login-button.teacher {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.login-button.student {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 60, 114, 0.3);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.form-footer a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #1e3c72;
}

.info-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.info-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.info-links a:hover {
    color: white;
}

.info-links i {
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
        max-width: 500px;
    }

    .info-section {
        order: 2;
        text-align: center;
        padding: 30px;
    }

    .login-section {
        order: 1;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        border-radius: 0;
    }

    .login-form {
        padding: 30px;
    }

    .info-section {
        padding: 20px;
    }
}