@font-face {
    font-family: 'IranianSans';
    src: url('/main/fonts/IranianSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.gh-signup-body {
    font-family: 'IranianSans', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2f2f2f 100%);
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: auto;
    position: relative;
}

.gh-signup-container {
    max-width: 400px;
    width: 90%;
    padding: 30px;
    background: #252525;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease;
}

.gh-signup-container:hover {
    transform: translateY(-5px);
}

.gh-signup-container::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: radial-gradient(circle, rgba(27, 94, 32, 0.2) 0%, transparent 70%);
    animation: glow 12s infinite ease-in-out;
    z-index: -1;
}

@keyframes glow {
    0% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.15); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.15; }
}

.gh-signup-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.gh-error, .gh-signup-disabled {
    color: #ff4d4d;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 77, 77, 0.15);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 77, 77, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.gh-signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.gh-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gh-form-group label {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.gh-form-group label:hover {
    color: #2ecc71;
    transform: translateX(5px);
}

.gh-form-group input {
    padding: 12px;
    font-size: 16px;
    font-family: 'IranianSans', sans-serif;
    background: #333333;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.gh-form-group input:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    transform: scale(1.02);
}

.gh-password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.gh-password-container input {
    width: 100%;
}

.gh-password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #e0e0e0;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s ease;
}

.gh-password-toggle:hover {
    color: #2ecc71;
}

.gh-password-strength {
    height: 6px;
    background: #4a4a4a;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.gh-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.gh-strength-bar.weak {
    width: 33%;
    background: #ff4d4d;
}

.gh-strength-bar.medium {
    width: 66%;
    background: #ffd700;
}

.gh-strength-bar.strong {
    width: 100%;
    background: #2ecc71;
}

.gh-password-rules {
    font-size: 13px;
    color: #bbbbbb;
    margin-top: 6px;
    text-align: right;
    line-height: 1.5;
}

.gh-captcha-container {
    position: relative;
    background: #333333;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gh-captcha-container:hover {
    transform: translateY(-3px);
}

.gh-captcha-code {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 8px;
    color: #ffffff;
    padding: 8px 12px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    border-radius: 8px;
}

.gh-captcha-code span {
    display: inline-block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gh-captcha-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    height: 2px;
    z-index: 2;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.gh-captcha-input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-size: 15px;
    font-family: 'IranianSans', sans-serif;
    background: #333333;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    outline: none;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.gh-captcha-input:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    transform: scale(1.02);
}

.gh-captcha-refresh {
    font-family: 'IranianSans', sans-serif;
    color: #ffffff;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.gh-captcha-refresh:hover {
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.gh-terms-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gh-terms-group label {
    font-size: 15px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.gh-terms-group label:hover {
    color: #2ecc71;
    transform: translateX(5px);
}

.gh-terms-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2ecc71;
    cursor: pointer;
}

.gh-terms-view {
    font-family: 'IranianSans', sans-serif;
    color: #ffffff;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.gh-terms-view:hover {
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.gh-btn-submit {
    font-family: 'IranianSans', sans-serif;
    color: #ffffff;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.4);
}

.gh-btn-submit:disabled {
    background: #4a4a4a;
    cursor: not-allowed;
    box-shadow: none;
}

.gh-btn-submit:not(:disabled):hover {
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.gh-login-link {
    font-size: 15px;
    text-align: center;
    margin-top: 20px;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gh-login-link a {
    color: #2ecc71;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

.gh-login-link a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.gh-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gh-modal-content {
    background: #252525;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: #e0e0e0;
    position: relative;
}

.gh-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gh-modal-close:hover {
    color: #ff4d4d;
}

.gh-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gh-terms-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.gh-terms-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gh-term-item {
    background: #333333;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.gh-term-item:hover {
    transform: translateY(-3px);
}

.gh-term-item i {
    font-size: 20px;
    color: #2ecc71;
    margin-left: 12px;
}

.gh-term-item strong {
    font-size: 17px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
}

.gh-term-item p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    color: #bbbbbb;
}

.gh-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gh-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #2ecc71;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gh-loading-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
    .gh-signup-container {
        padding: 20px;
        max-width: 95%;
    }
    .gh-signup-title {
        font-size: 24px;
    }
    .gh-form-group label {
        font-size: 15px;
    }
    .gh-form-group input {
        font-size: 15px;
        padding: 10px;
    }
    .gh-btn-submit, .gh-terms-view {
        font-size: 16px;
        padding: 12px;
    }
    .gh-login-link {
        font-size: 14px;
    }
    .gh-password-toggle {
        font-size: 18px;
    }
    .gh-terms-group label {
        font-size: 14px;
    }
    .gh-terms-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    .gh-captcha-code {
        font-size: 18px;
        letter-spacing: 6px;
    }
    .gh-captcha-input {
        font-size: 14px;
        padding: 8px;
    }
    .gh-captcha-refresh {
        font-size: 12px;
        padding: 6px 10px;
    }
    .gh-password-rules {
        font-size: 12px;
    }
    .gh-modal-content {
        max-width: 90%;
        padding: 20px;
    }
    .gh-loading-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gh-signup-container {
        padding: 15px;
    }
    .gh-signup-title {
        font-size: 22px;
    }
    .gh-form-group label {
        font-size: 14px;
    }
    .gh-form-group input {
        font-size: 14px;
        padding: 8px;
    }
    .gh-btn-submit, .gh-terms-view {
        font-size: 15px;
        padding: 10px;
    }
    .gh-login-link {
        font-size: 13px;
    }
    .gh-password-toggle {
        font-size: 16px;
    }
    .gh-terms-group label {
        font-size: 13px;
    }
    .gh-terms-group input[type="checkbox"] {
        width: 16px;
        height: 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: 5px 8px;
    }
    .gh-password-rules {
        font-size: 11px;
    }
}