/**
 * MagStack Public & Auth Modern Stylesheet
 * For login, registration, and start-trial onboarding.
 */

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #ede9fe;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* Split Screen Container */
.login_singup_main-screen {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    background: #ffffff;
}

/* Left Column (Brand / Testimonial Showcase) */
.amlmost-left-col {
    flex: 1.1;
    background: linear-gradient(145deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.amlmost-left-col::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.left_content_inner {
    max-width: 520px;
    position: relative;
    z-index: 2;
}

.testimonial {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testimonial .description {
    font-size: 16px;
    line-height: 1.7;
    color: #e2e8f0;
    margin: 0 0 24px 0;
    font-style: italic;
}

.autoher_detils {
    display: flex;
    align-items: center;
    gap: 16px;
}

.autoher_detils .pic img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.testimonial-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.testimonial-title small {
    display: block;
    font-size: 12px;
    color: #a78bfa;
    font-weight: 500;
    margin-top: 2px;
}

/* Right Column (Auth Form) */
.almost-right-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #f8fafc;
}

.almost-here-section-main {
    width: 100%;
    max-width: 440px;
}

.almost-here-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.m_logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.almost-sub-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.almost-subtxt {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    margin: 0 0 4px 0;
}

.credentials_txt {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 24px 0;
}

/* Form Fields */
.colum {
    margin-bottom: 20px;
}

.colum label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.colum input[type="text"],
.colum input[type="email"],
.colum input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.colum input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.forgot-password {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 24px;
}

.forgot-password a {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Primary Action Button */
.action.primary, button[type="submit"].action {
    width: 100%;
    padding: 13px 20px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.action.primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

/* Error and Alert Box */
.errors, .alert-danger {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #b91c1c;
    font-size: 13px;
    margin-bottom: 20px;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #15803d;
    font-size: 13px;
    margin-bottom: 20px;
}

/* Footer Links */
.login-footer {
    margin-top: 28px;
    text-align: center;
}

.login-footer p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 8px 0;
}

.login-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.login-footer ul li a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
}

.login-footer ul li a:hover {
    color: var(--primary);
}

/* Responsive adaptation */
@media (max-width: 900px) {
    .amlmost-left-col {
        display: none;
    }

    .almost-right-col {
        width: 100%;
        padding: 24px 16px;
    }
}
