﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-dark: #121212;
    --secondary-dark: #1e1e1e;
    --accent-color: #2ba92e;
    --text-light: #a0a0a0;
    --text-dark: #ffffff;
}

form {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

body {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Poppins', sans-serif !important;
    background-color: #f9f9f9 !important;
}

html {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Poppins', sans-serif !important;
    background-color: #f9f9f9 !important;
}

.ninjapipe-custom .container {
    display: flex !important;
    min-height: 100vh !important;
    width: 100% !important;
    max-width: none !important;
    padding-left: 0px;
    padding-right: 0px;
}

.hidden {
    display: none !important;
}

.left-panel {
    width: 50% !important;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.leftHeight {
    height: 150%;
}

    .left-panel::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2" stroke-dasharray="6 4" /></svg>') repeat;
        background-size: 100px 100px;
        opacity: 0.5;
        animation: rotate 60s linear infinite;
        pointer-events: none;
    }

.left-panel-green {
    width: 50% !important;
    background: linear-gradient(135deg, #29912d 0%, #073e08 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

    .left-panel-green::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2" stroke-dasharray="6 4" /></svg>') repeat;
        background-size: 100px 100px;
        opacity: 0.5;
        animation: rotate 60s linear infinite;
        pointer-events: none;
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.right-panel {
    width: 50%; /* Instead of flex: 1 */
    background-color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.sidebar-logo {
    width: 80px;
    border-radius: 5px;
}

.sidebar-logo-2x {
    width: 150px;
    border-radius: 5px;
}

.main-logo {
    width: 150px;
}

.logo {
    font-size: 48px;
    margin-bottom: 60px;
    position: relative;
}

.hello {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.description {
    font-size: 20px;
    line-height: 1.6;
    position: relative;
    font-weight: 300;
}

.copyright {
    margin-top: auto;
    font-size: 14px;
    position: relative;
    opacity: 0.8;
}

.company-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 50px;
    color: var(--primary-green);
}

h1 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 0px;
    color: black;
}

.paragraph {
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.create-account {
    font-size: 15px;
    margin-bottom: 40px;
    color: var(--text-light);
    text-align: center;
}

    .create-account a, .forgot-password a {
        color: #2ba92e;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        .create-account a:hover, .forgot-password a:hover {
            color: #238b24;
        }

.create-account-left {
    text-align: start !important;
}


input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #2ba92e;
}

.company-name {
    color: #2ba92e;
}

input {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: none;
    background-color: #f0f0f0;
    border-radius: 5px;
    font-size: 16px;
    transition: box-shadow 0.3s ease;
}

.auth-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: none;
    background-color: #f0f0f0;
    border-radius: 5px;
    font-size: 16px;
    transition: box-shadow 0.3s ease;
}

.login-button {
    width: 100%;
    background-color: #2ba92e;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .login-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(43, 169, 46, 0.4);
    }

.google-button {
    width: 100%;
    background-color: white;
    border: 2px solid #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .google-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .google-button img {
        margin-right: 10px;
    }

.forgot-password {
    margin-top: 5px;
    font-size: 14px;
    color: var(--text-light);
    text-align: start;
}

.text-grey {
    color: var(--text-light) !important;
}

.error-message {
    color: red !important;
    font-size: 14px !important;
}

.wave-emoji {
    font-size: 28px;
    display: inline-block;
    animation: wave-animation 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-animation {
    0% {
        transform: rotate( 0.0deg)
    }

    10% {
        transform: rotate(14.0deg)
    }

    20% {
        transform: rotate(-8.0deg)
    }

    30% {
        transform: rotate(14.0deg)
    }

    40% {
        transform: rotate(-4.0deg)
    }

    50% {
        transform: rotate(10.0deg)
    }

    60% {
        transform: rotate( 0.0deg)
    }

    100% {
        transform: rotate( 0.0deg)
    }
}


@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-panel {
        display: none;
    }

    .left-panel-green {
        display: none;
    }

    .right-panel {
        padding: 20px;
        width:100% !important;
    }

    input {
        width: auto;
    }

    .main-logo {
        width: 120px;
    }

    h1 {
        font-size: 20px;
    }

    .paragraph {
        font-size: 14px;
    }

    input, .login-button, .google-button {
        font-size: 14px;
        padding: 12px;
    }

    .create-account {
        font-size: 14px;
    }
}

.top-content, .middle-content, .bottom-content {
    width: 100%;
}

.top-content {
    flex-grow: 0;
}

.middle-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bottom-content {
    flex-grow: 0;
}

.h1-heading {
    font-size: 22px !important;
    font-weight: 800 !important;
    margin-bottom: 0px !important;
    color: black !important;
}






.workspace-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.workspace-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .workspace-item:last-child {
        border-bottom: none;
    }

    .workspace-item:hover {
        background-color: #f5f5f5;
    }

.workspace-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.workspace-info {
    flex-grow: 1;
}

.workspace-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.workspace-url {
    font-size: 0.9em;
    color: #666;
}

.workspace-current {
    font-size: 0.8em;
    color: #2ba92e;
    margin-left: auto;
}

.create-workspace-button {
    width: 100%;
    background-color: white;
    border: 2px solid #e0e0e0;
    color: #333;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .create-workspace-button:hover {
        background-color: #f8f8f8;
        border-color: #d0d0d0;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .create-workspace-button:active {
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

/* Scrollbar styles */
.workspace-list::-webkit-scrollbar {
    width: 8px;
}

.workspace-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.workspace-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    .workspace-list::-webkit-scrollbar-thumb:hover {
        background: #555;
    }








.loading-container {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2ba92e;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-container h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.loading-container p {
    font-size: 16px;
    color: #666;
}






.workspace-creator {
    width: 100%;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-sizing: border-box;
}

.workspace-creator-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.workspace-creator-form-group {
    margin-bottom: 25px;
}

.workspace-creator-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.workspace-creator-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    margin-bottom: 0px;
}

    .workspace-creator-input:focus {
        outline: none;
        border-color: #2ba92e;
        box-shadow: 0 0 0 2px rgba(43, 169, 46, 0.2);
    }

.workspace-creator-input-group {
    display: flex;
    width: 100%;
}

    .workspace-creator-input-group .workspace-creator-input {
        flex: 1;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

.workspace-creator-input-group-text {
    padding: 12px 15px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    color: #666;
    white-space: nowrap;
}

.workspace-creator-form-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.workspace-creator-logo-preview {
    max-width: 100px;
    max-height: 100px;
    margin-top: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.workspace-creator-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.workspace-creator-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.workspace-creator-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

    .workspace-creator-btn-secondary:hover {
        background-color: #e0e0e0;
    }

.workspace-creator-btn-primary {
    background-color: #2ba92e;
    color: white;
}

    .workspace-creator-btn-primary:hover {
        background-color: #238b24;
    }

.workspace-creator-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2ba92e;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: workspace-creator-spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes workspace-creator-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.workspace-creator-hidden {
    display: none;
}

.workspace-creator-mt-2 {
    margin-top: 0.5rem;
}

.workspace-creator-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.workspace-creator-input[type="file"] {
    padding: 8px;
}

.workspace-creator * {
    box-sizing: border-box;
}

.logo-upload-section {
    margin-bottom: 30px;
}

.logo-upload-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.logo-upload-container {
    display: flex;
    gap: 15px; /* Reduced gap between logo areas */
}

.logo-upload-item {
    flex: 0 0 auto; /* Prevent items from growing */
}

.logo-upload-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #555;
}

.logo-upload-area {
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .logo-upload-area.rectangle {
        width: 140px;
        height: 70px;
        border-radius: 8px;
    }

    .logo-upload-area.circle {
        width: 70px;
        height: 70px;
        border-radius: 50%;
    }

    .logo-upload-area:hover {
        border-color: #2ba92e;
        background-color: rgba(43, 169, 46, 0.05);
    }

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: opacity 0.3s ease;
}

.logo-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-upload-area:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.logo-upload-area:hover .logo-placeholder {
    color: white;
    z-index: 1;
}





.workspace-creator-mt-2 {
    margin-top: 0.5rem;
}

.workspace-creator-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: workspace-creator-spinner-animation 0.75s linear infinite;
}

@keyframes workspace-creator-spinner-animation {
    to {
        transform: rotate(360deg);
    }
}

.workspace-creator-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#availabilityText.available {
    color: #28a745;
}

#availabilityText.unavailable {
    color: #dc3545;
}





/* 2FA */

.code-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 25px 0;
}

.code-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 25px 0;
}

.code-input {
    width: 50px;
    height: 60px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

    .code-input:focus {
        border-color: #2ba92e;
        box-shadow: 0 0 0 2px rgba(43, 169, 46, 0.2);
        outline: none;
    }

    .code-input.filled {
        border-color: #2ba92e;
        background-color: #f8fff8;
    }

.verify-button {
    width: 100%;
    background-color: #2ba92e;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin: 25px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; 
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 8px;
}

    .verify-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(43, 169, 46, 0.4);
    }

    .verify-button:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.verify-button-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: none; /* Hidden by default */
}

.verify-button.verifying .verify-button-spinner {
    display: inline-block;
}

.verify-button.verifying .button-text {
    opacity: 0.7;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.resend-code {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

    .resend-code a {
        color: #2ba92e;
        text-decoration: none;
        font-weight: 600;
    }

        .resend-code a:hover {
            color: #238b24;
        }

#hiddenInput {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; /* Add this */
    height: 0; /* Add this */
    overflow: hidden; /* Add this */
    margin: 0; /* Add this */
    padding: 0; /* Add this */
}

.countdown-active {
    color: var(--text-light);
    cursor: default;
    pointer-events: none;
}

#countdownTimer {
    color: var(--text-light);
    font-size: 14px;
}

    #countdownTimer.hidden {
        display: none;
    }

.resend-code {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

#countdownTimer {
    display: block;
    color: #2ba92e;
    margin-top: 4px;
}
