@font-face {
    font-family: 'IranianSans';
    src: url('/main/fonts/IranianSans.ttf') format('truetype');
}

.gh-signin-body {
    font-family: 'IranianSans', sans-serif;
    background: linear-gradient(145deg, #212121 0%, #424242 100%);
    color: #FFFFFF;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: auto;
}

.gh-signin-container {
    max-width: 380px;
    width: 100%;
    padding: 20px;
    background: #2A2A2A;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.gh-signin-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(27, 94, 32, 0.15) 0%, transparent 60%);
    animation: glow 10s infinite ease-in-out;
    z-index: -1;
}

@keyframes glow {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.35; }
    100% { transform: scale(1); opacity: 0.2; }
}

.gh-signin-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.gh-error, .gh-signin-disabled {
    color: #FF6B6B;
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 107, 107, 0.1);
    padding: 6px;
    border-radius: 5px;
    position: relative;
    z-index: 1;
}

.gh-signin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.gh-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gh-form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.gh-form-group label:hover {
    color: #1B5E20;
}

.gh-form-group input {
    padding: 10px;
    font-size: 15px;
    font-family: 'IranianSans', sans-serif;
    background: #424242;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #FFFFFF;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.gh-form-group input:focus {
    border-color: #1B5E20;
    box-shadow: 0 0 8px rgba(27, 94, 32, 0.4);
}

.gh-password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.gh-password-container input {
    width: 100%;
}

.gh-password-toggle {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFFFFF;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.gh-password-toggle:hover {
    color: #1B5E20;
}

.gh-captcha-container {
    position: relative;
    background: #424242;
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.gh-captcha-code {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 6px;
    color: #FFFFFF;
    padding: 6px 10px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.gh-captcha-code span {
    display: inline-block;
}

.gh-captcha-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    height: 1px;
    z-index: 2;
    opacity: 0.2;
}

.gh-captcha-input {
    width: 100%;
    padding: 8px 10px;
    margin-top: 8px;
    font-size: 14px;
    font-family: 'IranianSans', sans-serif;
    background: #424242;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #FFFFFF;
    outline: none;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.gh-captcha-input:focus {
    border-color: #1B5E20;
    box-shadow: 0 0 8px rgba(27, 94, 32, 0.4);
}

.gh-captcha-refresh {
    font-family: 'IranianSans', sans-serif;
    color: #FFFFFF;
    background: #1B5E20;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.gh-captcha-refresh:hover {
    background: #FFFFFF;
    color: #1B5E20;
    transform: translateY(-1px);
}

.gh-btn-submit {
    font-family: 'IranianSans', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(45deg, #1B5E20, #2E7D32);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.3);
}

.gh-btn-submit:disabled {
    background: #555;
    cursor: not-allowed;
    box-shadow: none;
}

.gh-btn-submit:not(:disabled):hover {
    background: linear-gradient(45deg, #FFFFFF, #E0E0E0);
    color: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gh-otp-link {
    font-family: 'IranianSans', sans-serif;
    color: #1B5E20;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.gh-otp-link:hover {
    color: #FFFFFF;
}

.gh-signup-link {
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-bottom: 15px;
}

.gh-signup-link a {
    color: #1B5E20;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.gh-signup-link a:hover {
    color: #FFFFFF;
}

.gh-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gh-modal-content {
    background: #2A2A2A;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    width: 100%;
    text-align: center;
    color: #FFFFFF;
    position: relative;
}

.gh-modal-content h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.gh-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #FFFFFF;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gh-modal-close:hover {
    color: #FF6B6B;
}

@media (max-width: 767px) {
    .gh-signin-container {
        padding: 15px;
        max-width: 90%;
    }
    .gh-signin-title {
        font-size: 22px;
    }
    .gh-form-group label {
        font-size: 14px;
    }
    .gh-form-group input {
        font-size: 14px;
        padding: 8px;
    }
    .gh-btn-submit {
        font-size: 15px;
        padding: 10px;
    }
    .gh-otp-link {
        font-size: 13px;
    }
    .gh-signup-link {
        font-size: 13px;
        margin-top: 15px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    .gh-password-toggle {
        font-size: 16px;
    }
    .gh-captcha-code {
        font-size: 16px;
        letter-spacing: 5px;
    }
    .gh-captcha-input {
        font-size: 13px;
        padding: 6px;
    }
    .gh-captcha-refresh {
        font-size: 11px;
        padding: 4px 8px;
    }
    .gh-modal-content {
        max-width: 80%;
        padding: 15px;
    }
    .gh-modal-content h2 {
        font-size: 16px;
    }
}