    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .login-container {
        margin-top: 80px;
        min-height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.6);
        padding: 1.5rem;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .login-wrapper {
        max-width: 480px;
        width: 100%;
        margin: 0 auto;
        z-index: 1000;

    }

    .login-card {
        background: white;
        border-radius: 20px;
        padding: 1.5rem;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        animation: fadeInUp 0.5s ease;
    }

    .login-header {
        text-align: center;
        margin-bottom: 1.2rem;
    }

    .login-icon {
        width: 55px;
        height: 55px;
        background: linear-gradient(135deg, #667eea20, #764ba220);
        border-radius: 15px;
        margin: 0 auto 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-icon svg {
        width: 28px;
        height: 28px;
        color: #667eea;
    }

    .login-header h2 {
        font-size: 1.3rem;
        color: #1e293b;
        margin-bottom: 0.2rem;
    }

    .login-header p {
        color: #64748b;
        font-size: 0.7rem;
    }

    /* ========== استایل پیام‌ها ========== */
    .messages-container {
        margin-bottom: 1rem;
    }

    .message {
        padding: 0.7rem 1rem;
        border-radius: 10px;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        animation: slideDown 0.3s ease;
    }

    .message-success {
        background: #d4edda;
        color: #155724;
        border-right: 3px solid #28a745;
    }

    .message-error {
        background: #f8d7da;
        color: #721c24;
        border-right: 3px solid #dc3545;
    }

    .message-warning {
        background: #fff3cd;
        color: #856404;
        border-right: 3px solid #ffc107;
    }

    .message-info {
        background: #d1ecf1;
        color: #0c5460;
        border-right: 3px solid #17a2b8;
    }

    .message-icon {
        font-size: 1rem;
    }

    .message-text {
        flex: 1;
    }

    .message-close {
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.2s;
    }

    .message-close:hover {
        opacity: 1;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* فرم */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.3rem;
        color: #334155;
        font-size: 0.75rem;
    }

    .form-control {
        width: 100%;
        padding: 0.6rem 0.8rem;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        font-family: inherit;
    }

    .form-control:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 2px rgba(102,126,234,0.1);
    }

    .form-control.is-invalid {
        border-color: #dc3545;
    }

    .invalid-feedback {
        color: #dc3545;
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }

    .btn-login {
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 0.7rem;
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 0.5rem;
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102,126,234,0.4);
    }

    .divider {
        display: flex;
        align-items: center;
        text-align: center;
        margin: 1rem 0;
    }

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e2e8f0;
    }

    .divider span {
        padding: 0 0.8rem;
        color: #94a3b8;
        font-size: 0.7rem;
    }

    .register-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }

    .btn-register {
        width: 100%;
        background: transparent;
        border: 1.5px solid #e2e8f0;
        color: #475569;
        padding: 0.6rem;
        border-radius: 10px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .btn-register:hover {
        border-color: #667eea;
        color: #667eea;
        background: #f8fafc;
        transform: translateY(-2px);
    }

    .btn-register.individual {
        background: linear-gradient(135deg, #667eea10, #764ba210);
        border-color: #667eea;
        color: #667eea;
    }

    .login-links {
        text-align: center;
        margin-top: 1rem;
        padding-top: 0.8rem;
        border-top: 1px solid #e2e8f0;
    }

    .login-links a {
        color: #667eea;
        text-decoration: none;
        font-size: 0.7rem;
        margin: 0 0.3rem;
    }

    .login-links a:hover {
        text-decoration: underline;
    }

    .errorlist {
        background: #fee;
        color: #dc2626;
        padding: 0.3rem 0.8rem;
        border-radius: 8px;
        margin-top: 0.3rem;
        font-size: 0.7rem;
        list-style: none;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 550px) {
        .login-card {
            padding: 1.2rem;
        }
        .login-header h2 {
            font-size: 1.1rem;
        }
    }


    .register-container {
        margin-top: 80px;
        min-height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.6);
        padding: 1.5rem;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .register-wrapper {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
        z-index: 1000;
    }

    .register-card {
        background: white;
        border-radius: 20px;
        padding: 1.2rem 1.5rem;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        animation: fadeInUp 0.5s ease;
    }

    .register-header {
        text-align: center;
        margin-bottom: 1rem;
    }

    .register-icon {
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, #667eea20, #764ba220);
        border-radius: 12px;
        margin: 0 auto 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .register-icon svg {
        width: 24px;
        height: 24px;
        color: #667eea;
    }

    .register-header h2 {
        font-size: 1.2rem;
        color: #1e293b;
        margin-bottom: 0.2rem;
    }

    .register-header p {
        color: #64748b;
        font-size: 0.7rem;
    }

    /* 3 ستونه */
    .form-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .form-group {
        margin-bottom: 0.6rem;
    }

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.2rem;
        color: #334155;
        font-size: 0.7rem;
    }

    .form-control, select {
        width: 100%;
        padding: 0.5rem 0.6rem;
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        font-size: 0.8rem;
        transition: all 0.3s ease;
        font-family: inherit;
    }

    .form-control:focus, select:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 2px rgba(102,126,234,0.1);
    }

    .full-width {
        grid-column: span 3;
    }

    .half-width {
        grid-column: span 2;
    }

    .btn-register {
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 0.6rem;
        border-radius: 10px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 0.5rem;
    }

    .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102,126,234,0.4);
    }

    .errorlist {
        background: #fee;
        color: #dc2626;
        padding: 0.2rem 0.5rem;
        border-radius: 5px;
        margin-top: 0.2rem;
        font-size: 0.65rem;
        list-style: none;
    }

    .login-link {
        text-align: center;
        margin-top: 0.8rem;
        padding-top: 0.6rem;
        border-top: 1px solid #e2e8f0;
    }

    .login-link a {
        color: #667eea;
        text-decoration: none;
        font-size: 0.7rem;
    }

    .login-link a:hover {
        text-decoration: underline;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 650px) {
        .register-wrapper {
            max-width: 100%;
        }
        .form-grid {
            grid-template-columns: 1fr;
            gap: 0;
        }
        .full-width, .half-width {
            grid-column: span 1;
        }
        .register-card {
            padding: 1rem;
        }
        .register-header h2 {
            font-size: 1rem;
        }
    }


/* ****************************************************** */

    .register-container {
        margin-top: 80px;
        min-height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.6);
        padding: 1.5rem;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .register-wrapper {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
        z-index: 1000;
    }

    .register-card {
        background: white;
        border-radius: 20px;
        padding: 1.2rem 1.5rem;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        animation: fadeInUp 0.5s ease;
    }

    .register-header {
        text-align: center;
        margin-bottom: 1rem;
    }

    .register-icon {
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, #667eea20, #764ba220);
        border-radius: 12px;
        margin: 0 auto 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .register-icon svg {
        width: 24px;
        height: 24px;
        color: #667eea;
    }

    .register-header h2 {
        font-size: 1.2rem;
        color: #1e293b;
        margin-bottom: 0.2rem;
    }

    .register-header p {
        color: #64748b;
        font-size: 0.7rem;
    }

    .info-box {
        background: #e0e7ff;
        padding: 0.4rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        font-size: 0.7rem;
        color: #4338ca;
        text-align: center;
    }

    .form-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .form-group {
        margin-bottom: 0.6rem;
    }

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.2rem;
        color: #334155;
        font-size: 0.7rem;
    }

    .form-control, select {
        width: 100%;
        padding: 0.5rem 0.6rem;
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        font-size: 0.8rem;
        transition: all 0.3s ease;
        font-family: inherit;
    }

    .form-control:focus, select:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 2px rgba(102,126,234,0.1);
    }

    .full-width {
        grid-column: span 3;
    }

    .half-width {
        grid-column: span 2;
    }

    .btn-register {
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 0.6rem;
        border-radius: 10px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 0.5rem;
    }

    .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102,126,234,0.4);
    }

    .errorlist {
        background: #fee;
        color: #dc2626;
        padding: 0.2rem 0.5rem;
        border-radius: 5px;
        margin-top: 0.2rem;
        font-size: 0.65rem;
        list-style: none;
    }

    .login-link {
        text-align: center;
        margin-top: 0.8rem;
        padding-top: 0.6rem;
        border-top: 1px solid #e2e8f0;
    }

    .login-link a {
        color: #667eea;
        text-decoration: none;
        font-size: 0.7rem;
    }

    .login-link a:hover {
        text-decoration: underline;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 650px) {
        .register-wrapper {
            max-width: 100%;
        }
        .form-grid {
            grid-template-columns: 1fr;
            gap: 0;
        }
        .full-width, .half-width {
            grid-column: span 1;
        }
        .register-card {
            padding: 1rem;
        }
        .register-header h2 {
            font-size: 1rem;
        }
    }


/* -------------------------------------------------------- */

    .register-container {
        margin-top: 80px;
        min-height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.6);
        padding: 1.5rem;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .register-wrapper {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
        z-index: 1000;
    }

    .register-card {
        background: white;
        border-radius: 20px;
        padding: 1.2rem 1.5rem;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        animation: fadeInUp 0.5s ease;
    }

    .register-header {
        text-align: center;
        margin-bottom: 1rem;
    }

    .register-icon {
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, #667eea20, #764ba220);
        border-radius: 12px;
        margin: 0 auto 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .register-icon svg {
        width: 24px;
        height: 24px;
        color: #667eea;
    }

    .register-header h2 {
        font-size: 1.2rem;
        color: #1e293b;
        margin-bottom: 0.2rem;
    }

    .register-header p {
        color: #64748b;
        font-size: 0.7rem;
    }

    .info-box {
        background: #e0e7ff;
        padding: 0.4rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        font-size: 0.7rem;
        color: #4338ca;
        text-align: center;
    }

    .form-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .form-group {
        margin-bottom: 0.6rem;
    }

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.2rem;
        color: #334155;
        font-size: 0.7rem;
    }

    .form-control, select {
        width: 100%;
        padding: 0.5rem 0.6rem;
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        font-size: 0.8rem;
        transition: all 0.3s ease;
        font-family: inherit;
    }

    .form-control:focus, select:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 2px rgba(102,126,234,0.1);
    }

    .full-width {
        grid-column: span 3;
    }

    .btn-register {
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 0.6rem;
        border-radius: 10px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 0.5rem;
    }

    .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102,126,234,0.4);
    }

    .errorlist {
        background: #fee;
        color: #dc2626;
        padding: 0.2rem 0.5rem;
        border-radius: 5px;
        margin-top: 0.2rem;
        font-size: 0.65rem;
        list-style: none;
    }

    .login-link {
        text-align: center;
        margin-top: 0.8rem;
        padding-top: 0.6rem;
        border-top: 1px solid #e2e8f0;
    }

    .login-link a {
        color: #667eea;
        text-decoration: none;
        font-size: 0.7rem;
    }

    .login-link a:hover {
        text-decoration: underline;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 650px) {
        .register-wrapper {
            max-width: 100%;
        }
        .form-grid {
            grid-template-columns: 1fr;
            gap: 0;
        }
        .full-width {
            grid-column: span 1;
        }
        .register-card {
            padding: 1rem;
        }
        .register-header h2 {
            font-size: 1rem;
        }
    }
