:root {
    --primary-color: #0066ff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --bg-main: #f8f9fa;
    --border-color: #dee2e6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: #01081a; /* رنگ سرمه‌ای تاریک */
    height: 100vh;
    overflow: hidden;
}

.layout-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}

.right-panel {
    width: 480px;
    min-width: 480px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-shrink: 0;
}

.left-panel {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.left-panel img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.modal-container {
    width: 100%;
    max-width: 440px;
}

@media (max-width: 900px) {
    .layout-wrapper {
        justify-content: center;
    }
    .left-panel {
        display: none;
    }
    .right-panel {
        width: 100%;
        min-width: unset;
    }
}

.modal {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 32px 24px;
    text-align: center;
}

.step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step.active {
    display: block;
}

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

.header-image-container {
    height: 70px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-image-container img {
    height: 100%;
    object-fit: contain;
}

h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.input-group {
    text-align: right;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f9fafb;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    background-color: #fff;
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.invite-code {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 32px;
    cursor: pointer;
    font-weight: 500;
}

.primary-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 20px;
}

.primary-btn:hover {
    background-color: #0052cc;
}

.secure-notice {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secure-notice strong {
    color: var(--text-main);
    direction: ltr;
    display: inline-block;
}

.forgot-password {
    text-align: right;
    margin-bottom: 32px;
}

.forgot-password a {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    direction: ltr;
    margin-bottom: 32px;
}

.otp-input {
    width: 46px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f9fafb;
    line-height: 52px;
    padding: 0;
    vertical-align: middle;
    display: block;
    caret-color: var(--primary-color);
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    background-color: #fff;
}

@keyframes ring {
    0% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

.ringing-phone {
    animation: ring 1.5s infinite ease-in-out;
    transform-origin: center;
}
