/* Ask Huly public pages (landing, Login, Register, VerifyEmail, ResetPassword) - CSP-compliant external styles */
:root {
    --primary-color: #8456ff;
    --text-color: #333333;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Main content styles */
.main-content {
    flex: 1;
    padding: 50px 0;
}

.main-content.reset-password-page {
    min-height: 80vh;
}

/* Add a spacer div to push footer down */
.content-spacer {
    min-height: 1vh;
    width: 100%;
}

.content-row {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.product-info {
    flex: 1;
    padding: 30px;
}

.product-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.product-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.product-benefits {
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.benefit-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(132, 86, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.benefit-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

/* Auth form styles */
.auth-section {
    flex: 1;
    padding: 30px;
    display: flex;
    justify-content: center;
}

.auth-container {
    max-width: 420px;
    width: 100%;
}

.auth-title {
    text-align: center;
    margin-bottom: 20px;
}

.auth-title h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 28px;
    margin: 0;
}

.auth-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: none;
}

.auth-header {
    background: linear-gradient(135deg, #8456ff 0%, #6c3ce9 100%);
    padding: 18px 24px;
    color: white;
    text-align: center;
}

.auth-header h2 {
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.auth-body {
    padding: 30px;
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(132, 86, 255, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.btn-primary {
    background: linear-gradient(135deg, #8456ff 0%, #6c3ce9 100%);
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(132, 86, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7244e0 0%, #5b32d1 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(132, 86, 255, 0.25);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: none;
}

.alert-danger {
    background-color: rgba(255, 74, 74, 0.1);
    color: #ff4a4a;
    border: 1px solid #ff4a4a;
}

/* User Limits Info Styles */
.user-limits-info {
    background-color: rgba(132, 86, 255, 0.05);
    border: 1px solid rgba(132, 86, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.limits-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.limits-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 13px;
    color: #666;
}

.limits-list li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.limits-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.limits-list li:last-child {
    margin-bottom: 0;
}

/* Terms and Conditions Styles (Register) */
.form-check {
    margin-bottom: 15px !important;
}

.form-check-input {
    margin-top: 0.2rem;
}

.form-check-label {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Disabled button styles */
.btn-primary:disabled {
    background: #ccc !important;
    border-color: #ccc !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Landing page styles */
.main-content:has(.redirect-container) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar.landing-navbar,
.landing-navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar-brand img {
    height: 55px;
}

.redirect-container {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.redirect-container .logo {
    margin-bottom: 30px;
}

.redirect-container .logo img {
    height: 60px;
}

.redirect-container h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 28px;
}

.redirect-container p {
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
}

.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.site-footer {
    background-color: white;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom {
    color: #999;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}
