/* Custom Domain Mobile Layout */

/* Reset Mobile Layout Backgrounds & Padding */
.auth-main-bg, .create-org-form, body, html {
    background-image: none !important;
    background-color: transparent !important;
    width: 100% !important;
    max-width: 100% !important;
}

.auth-body {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100vw !important;
    min-height: 100vh !important;
    background-color: #fafafa !important;
    position: relative;
    z-index: 1;
}

.auth-main {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    min-height: 100vh !important;
    width: 100% !important;
}

/* Form Card Design */
.custom-login-card {
    background: #ffffff;
    padding: 40px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin: auto !important;
    z-index: 10;
    text-align: center;
}

/* Logos & Typography */
.org-logo-img {
    height: 40px;
    object-fit: contain;
    margin-bottom: 24px;
}

.custom-title {
    font-size: 20px;
    font-weight: 500;
    color: #111;
    margin-bottom: 4px;
}

.custom-subtitle {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin-bottom: 16px;
}

.custom-signup-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
}

.custom-signup-link {
    color: #195BE0;
    font-weight: 600;
    text-decoration: none;
}

/* Inputs */
.custom-input-label {
    font-size: 12px;
    color: #333;
    text-align: left;
    display: block;
    margin-bottom: 6px;
}

.custom-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fff;
    color: #333;
}

.custom-input:focus {
    border-color: #195BE0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 91, 224, 0.1);
}

/* Button */
.custom-btn {
    width: 100%;
    background: #195BE0; /* Matched to screenshot color */
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(25, 91, 224, 0.2);
}

.custom-btn:hover {
    box-shadow: 0 6px 12px rgba(25, 91, 224, 0.3);
    transform: translateY(-1px);
}

/* Powered By */
.powered-by-wrapper {
    margin-top: 32px;
    text-align: center;
}

.powered-by-text {
    font-size: 11px;
    color: #777;
    margin-bottom: 8px;
}

.powered-by-logo {
    height: 18px;
    object-fit: contain;
}

/* --- DARK MODE OVERRIDES --- */
[data-theme="dark"] .auth-body {
    background-color: #050505 !important;
}

[data-theme="dark"] .custom-wave-bg {
    background-color: #050505;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 200 C300 0, 700 800, 1000 600' stroke='rgba(255,255,255,0.03)' stroke-width='1' fill='none'/%3E%3Cpath d='M0 220 C300 20, 700 820, 1000 620' stroke='rgba(255,255,255,0.02)' stroke-width='1' fill='none'/%3E%3Cpath d='M0 240 C300 40, 700 840, 1000 640' stroke='rgba(255,255,255,0.015)' stroke-width='1' fill='none'/%3E%3Cpath d='M0 260 C300 60, 700 860, 1000 660' stroke='rgba(255,255,255,0.01)' stroke-width='1' fill='none'/%3E%3Cpath d='M0 280 C300 80, 700 880, 1000 680' stroke='rgba(255,255,255,0.008)' stroke-width='1' fill='none'/%3E%3Cpath d='M0 300 C300 100, 700 900, 1000 700' stroke='rgba(255,255,255,0.005)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

[data-theme="dark"] .custom-login-card {
    background: #111111;
    border: 1px solid #222222;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .custom-title {
    color: #f5f5f5;
}

[data-theme="dark"] .custom-subtitle {
    color: #ffffff;
}

[data-theme="dark"] .custom-signup-text, [data-theme="dark"] .text-secondary {
    color: #999999 !important;
}

/* Fix theme toggle icon visibility in light mode */
html[data-theme="light"] #theme-toggle-button .icon {
    filter: brightness(0);
    opacity: 0.7;
}

[data-theme="dark"] .custom-input-label {
    color: #bbbbbb;
}

[data-theme="dark"] .custom-input {
    background: #0a0a0a !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

[data-theme="dark"] .custom-input:focus {
    background: #111111 !important;
}

[data-theme="dark"] .powered-by-text {
    color: #555555;
}

[data-theme="dark"] .powered-by-logo {
    filter: none !important;
}

/* Hardcoded text colors inside OTP and change password screens */
[data-theme="dark"] .custom-login-card div[style*="color: #555"] {
    color: #aaaaaa !important;
}
[data-theme="dark"] .custom-login-card .text-dark {
    color: #ffffff !important;
}
