/* CloudPods Sovereign - Professional Login Page */

/* Force hide WHMCS default elements on all auth pages */
.cloudpods-login-page .navbar,
.cloudpods-login-page .header,
.cloudpods-login-page nav,
.cloudpods-login-page .breadcrumb,
.cloudpods-login-page header:not(.cloudpods-header),
.cloudpods-login-page .top-nav {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

.cloudpods-login-page {
    background: #ffffff;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Force hide WHMCS default elements */
.cloudpods-login-page .navbar,
.cloudpods-login-page header:not(.cloudpods-header),
.cloudpods-login-page nav,
header.header,
nav.navbar,
.navbar-default,
footer:not(.cloudpods-footer),
.footer:not(.cloudpods-footer),
[class*="footer"]:not([class*="cloudpods-footer"]) {
    display: none !important;
}

/* Main Container */
.cloudpods-container {
    flex: 1;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.cloudpods-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    overflow: hidden;
}

/* Marketing Section with Beautiful Gradient */
.cloudpods-marketing {
    background: linear-gradient(135deg, 
        #1e3a8a 0%,      /* Deep blue from logo */
        #2563eb 25%,     /* Bright blue */
        #3b82f6 50%,     /* Sky blue */
        #00a3e0 75%,     /* Cyan from logo */
        #06b6d4 100%     /* Light cyan */
    );
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 35px;
    height: 100vh;
}

/* Animated gradient overlay */
.cloudpods-marketing::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Subtle pattern overlay */
.cloudpods-marketing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.cloudpods-marketing-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 100%;
    padding: 0;
}

/* Logo in Marketing Section - Aligned with Sign In heading */
.cloudpods-brand-logo {
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.cloudpods-logo {
    max-width: 190px;
    height: auto;
    filter: brightness(1.25) contrast(1.1) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.25));
}

.cloudpods-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cloudpods-title {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-family: 'Roboto', sans-serif;
}

.cloudpods-title sup {
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    vertical-align: super;
}

/* Fix TM symbol spacing and size */
.tm-symbol {
    margin-left: 2px;
    font-size: 12px !important;
    font-weight: 400;
}

.cloudpods-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    font-family: 'Roboto', sans-serif;
}

.cloudpods-description {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 18px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out 0.6s both;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cloudpods-features {
    display: flex;
    flex-direction: column;
    gap: 11px;
    animation: fadeIn 0.8s ease-out 0.8s both;
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cloudpods-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cloudpods-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.cloudpods-feature i {
    font-size: 20px;
    color: #ffffff;
    margin-top: 1px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.cloudpods-feature h3 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    font-family: 'Roboto', sans-serif;
}

.cloudpods-feature p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

/* Form Section */
.cloudpods-form-section {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 45px;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.cloudpods-form-container {
    width: 100%;
    max-width: 460px;
    animation: fadeInRight 0.8s ease-out;
    padding-bottom: 20px;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cloudpods-form-header {
    margin-bottom: 28px;
    margin-top: 0;
}

.cloudpods-form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    font-family: 'Roboto', sans-serif;
}

.cloudpods-form-header p {
    font-size: 16px;
    color: #64748b;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

/* Alerts */
.cloudpods-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.cloudpods-alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.cloudpods-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

.cloudpods-alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 3px solid #10b981;
}

.cloudpods-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

/* Form */
.cloudpods-form {
    width: 100%;
}

.cloudpods-form-group {
    margin-bottom: 24px;
}

.cloudpods-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.cloudpods-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.2s;
    font-family: inherit;
}

.cloudpods-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.cloudpods-input::placeholder {
    color: #9ca3af;
}

/* Captcha */
.cloudpods-captcha {
    margin-top: 8px;
}

.captcha-basic {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-basic img {
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.captcha-basic input {
    flex: 1;
}

/* Form Footer */
.cloudpods-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cloudpods-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.cloudpods-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.cloudpods-checkbox span {
    font-size: 14px;
    color: #374151;
}

.cloudpods-link {
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.cloudpods-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Button */
.cloudpods-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cloudpods-btn-primary {
    background: #0066cc;
    color: #ffffff;
}

.cloudpods-btn-primary:hover:not(:disabled) {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.cloudpods-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.cloudpods-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Divider */
.cloudpods-divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.cloudpods-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.cloudpods-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 16px;
    color: #6b7280;
    font-size: 14px;
}

/* Forgot Password Link */
.cloudpods-forgot-password {
    text-align: center;
    margin-top: 16px;
}

/* Back to Login Link */
.cloudpods-back-to-login {
    text-align: center;
    margin-top: 24px;
}

.cloudpods-back-to-login .cloudpods-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.cloudpods-back-to-login .cloudpods-link i {
    font-size: 12px;
}

/* Signup Link */
.cloudpods-signup {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.cloudpods-link-bold {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.cloudpods-link-bold:hover {
    text-decoration: underline;
}

/* Legal Text */
.cloudpods-legal-text {
    margin-top: 16px;
    text-align: center;
}

.cloudpods-legal-text p {
    font-size: 11px;
    line-height: 1.6;
    color: #6b7280;
    font-family: 'Roboto', sans-serif;
}

.cloudpods-legal-text a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.cloudpods-legal-text a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cloudpods-content {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }
    
    html, body {
        overflow-y: auto;
    }
    
    .cloudpods-login-page {
        overflow-y: auto;
    }
    
    .cloudpods-marketing {
        padding: 50px 40px;
        min-height: 60vh;
        height: auto;
    }
    
    .cloudpods-form-section {
        padding: 50px 40px;
        height: auto;
    }
    
    .cloudpods-title {
        font-size: 38px;
    }
    
    .cloudpods-subtitle {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .cloudpods-marketing {
        padding: 40px 24px;
    }
    
    .cloudpods-form-section {
        padding: 40px 24px;
    }
    
    .cloudpods-brand-logo {
        margin-bottom: 30px;
    }
    
    .cloudpods-logo {
        max-width: 200px;
    }
    
    .cloudpods-title {
        font-size: 32px;
    }
    
    .cloudpods-title sup {
        font-size: 18px;
    }
    
    .cloudpods-subtitle {
        font-size: 22px;
    }
    
    .cloudpods-description {
        font-size: 15px;
    }
    
    .cloudpods-feature {
        padding: 16px 18px;
    }
    
    .cloudpods-feature h3 {
        font-size: 16px;
    }
    
    .cloudpods-feature p {
        font-size: 13px;
    }
    
    .cloudpods-form-header h2 {
        font-size: 28px;
    }
    
    .cloudpods-form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .cloudpods-footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .cloudpods-marketing {
        padding: 32px 20px;
    }
    
    .cloudpods-form-section {
        padding: 32px 20px;
    }
    
    .cloudpods-logo {
        max-width: 170px;
    }
    
    .cloudpods-title {
        font-size: 26px;
    }
    
    .cloudpods-subtitle {
        font-size: 19px;
    }
    
    .cloudpods-description {
        font-size: 14px;
    }
    
    .cloudpods-form-header h2 {
        font-size: 24px;
    }
    
    .captcha-basic {
        flex-direction: column;
    }
}

/* Ensure no scroll on desktop */
@media (min-width: 1201px) {
    html, body, .cloudpods-login-page {
        overflow: hidden;
        height: 100vh;
    }
}