/* public\inc\auth.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    background: url('https://random.imagecdn.app/1920/1080') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

.wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    box-sizing: border-box;
}

.left-panel {
    flex: 1;
    background: linear-gradient(to bottom right, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-panel {
    flex: 1;
    padding: 50px 40px;
}

@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    .container {
        flex-direction: column;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        padding: 30px 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .btn {
        height: 45px;
    }

    .row {
        margin-right: -10px;
        margin-left: -10px;
    }

    .col-md-4,
    .col-md-6 {
        padding-right: 10px;
        padding-left: 10px;
    }

    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: 0 0;
    }
}

.form-container {
    display: none;
}

.form-container.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 16px;
    transition: all 0.3s;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    height: 50px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    padding: 0 30px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-demo {
    background: #e9ecef;
    border: 2px solid #dee2e6;
    color: #495057;
    width: 100%;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-demo:hover {
    background: #dee2e6;
}

.btn-demo svg {
    fill: var(--primary-color);
}

.demo-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.demo-modal-overlay.active {
    display: flex;
}

.demo-modal {
    background: white;
    border-radius: 12px;
    padding: 35px 40px;
    max-width: 440px;
    width: 92%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.demo-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.demo-modal .close-btn:hover {
    color: #343a40;
}

.demo-modal h3 {
    margin: 0 0 8px 0;
    color: #343a40;
    font-size: 22px;
}

.demo-modal .modal-sub {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 24px;
}

.demo-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.demo-options .demo-btn {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: 0.3s;
    font-family: inherit;
    font-size: 15px;
}

.demo-options .demo-btn:hover {
    border-color: var(--primary-color);
}

.demo-options .demo-btn.selected {
    border-color: var(--primary-color);
    background: rgba(0, 129, 198, 0.08);
}

.demo-options .demo-btn .demo-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-options .demo-btn .demo-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e9ecef;
    color: #6c757d;
}

.demo-options .demo-btn.selected .demo-badge {
    background: var(--primary-color);
    color: white;
}

.demo-modal .modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.demo-modal .modal-actions .btn-secondary {
    flex: 1;
    padding: 12px 24px;
    border: 2px solid #e9ecef;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    color: #6c757d;
    font-family: inherit;
}

.demo-modal .modal-actions .btn-secondary:hover {
    border-color: #6c757d;
    color: #343a40;
}

.demo-modal .modal-actions .btn-primary {
    flex: 1;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 20px;
}

.mb-4 {
    margin-bottom: 30px;
}

.card {
    border: none;
    background: transparent;
}

.card-body {
    padding: 0;
}

.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.alert {
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-md-4,
.col-md-6 {
    padding: 0 10px;
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.form-check-label {
    font-size: 15px;
    color: #495057;
}

.form-check-label a {
    color: var(--primary-color);
}

.demo-notice {
    background-color: #dbeafe;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
    color: #1e40af;
    font-weight: 500;
}

.demo-notice a {
    color: #1e40af;
    text-decoration: underline;
}

.icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.icon-svg svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.demo-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.demo-modal-overlay.active {
    display: flex;
}

.demo-modal {
    background: white;
    border-radius: 12px;
    padding: 35px 40px;
    max-width: 440px;
    width: 92%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.demo-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    transition: 0.3s;
}

.demo-modal .close-btn:hover {
    color: #343a40;
    transform: rotate(90deg);
}

.demo-modal h3 {
    margin: 0 0 8px 0;
    color: #343a40;
    font-size: 22px;
}

.demo-modal .modal-sub {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 24px;
}

.demo-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.demo-options .demo-btn {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: 0.3s;
    font-size: 15px;
    width: 100%;
    text-align: left;
}

.demo-options .demo-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 129, 198, 0.04);
}

.demo-options .demo-btn.selected {
    border-color: var(--primary-color);
    background: rgba(0, 129, 198, 0.08);
}

.demo-options .demo-btn .demo-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-options .demo-btn .icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    color: var(--primary-color);
}

.demo-options .demo-btn .demo-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e9ecef;
    color: #6c757d;
}

.demo-options .demo-btn.selected .demo-badge {
    background: var(--primary-color);
    color: white;
}

.demo-modal .modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.demo-modal .modal-actions .btn-secondary {
    flex: 1;
    padding: 12px 24px;
    border: 2px solid #e9ecef;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    color: #6c757d;
}

.demo-modal .modal-actions .btn-secondary:hover {
    border-color: #6c757d;
    color: #343a40;
}

.demo-modal .modal-actions .btn-primary {
    flex: 1;
    justify-content: center;
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.demo-modal .g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.demo-modal .g-recaptcha > div {
    margin: 0 auto;
}