/**
 * Modern Auth Pages Stylesheet
 * Shared styles for Login and Forgot Password pages
 * Based on Shadcn-style design with Bootstrap 3 compatibility
 */

:root {
    --primary: #ff6f00;
    --primary-hover: #e66400;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --error-bg: #fee2e2;
    --error-text: #991b1b;
}

/* Global Auth Page Styles */
body.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: white;
    color: var(--slate-900);
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Layout Structure */
.auth-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    overflow: hidden;
}

/* Brand Side */
.brand-side {
    background: var(--slate-900);
    color: white;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    width: 50%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    /* Bootstrap col-md-5 equivalent */
}

.brand-side::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 111, 0, 0.1), transparent 70%);
    pointer-events: none;
}

/* Form Side */
.form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    margin: auto 0;
}

/* Logo */
.orangescrum-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 24px;
    color: white;
    margin-bottom: 60px;
    text-decoration: none;
}

.orangescrum-logo:hover {
    color: white;
    text-decoration: none;
}

.logo-box {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
}

/* Feature List */
.feature-list {
    margin-bottom: 60px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.check-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 111, 0, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-item strong {
    color: white;
    display: block;
    margin-bottom: 4px;
}

.feature-item span {
    color: var(--slate-500);
    font-size: 14px;
}
.success{
    padding-top: 0px !important;
}

/* Testimonial */
.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px;
    border-radius: 16px;
    margin-top: 40px;
    max-width: 480px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 111, 0, 0.2);
    transform: translateY(-2px);
}

.testimonial-card p {
    font-style: italic;
    color: var(--slate-100);
    font-size: 16px;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.testimonial-author strong {
    color: white;
    display: block;
    font-size: 14px;
}

.testimonial-author span {
    color: var(--slate-500);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Elements */
.auth-heading {
    text-align: center;
    margin-bottom: 30px;
}

.auth-heading h1,
.auth-heading h2 {
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
    font-size: 32px;
}

.auth-heading p {
    color: var(--slate-500);
    font-weight: 500;
    font-size: 15px;
}

.auth-form .form-group {
    margin: 0px;
}

.auth-form label {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 8px;
    display: block;
}

.auth-form .form-control {
    height: 50px;
    border-radius: 10px;
    border: 1px solid var(--slate-200);
    box-shadow: none;
    font-size: 15px;
    padding: 10px 16px;
    transition: all 0.2s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-image: none;
}

.auth-form .form-control:focus {
    border-color: var(--primary);
    outline: none;
}

.form-group.is-focused label {
    color: var(--slate-900);
}

.auth-form .form-group.is-focused .form-control {
    background-image: none;
}

.auth-form .form-control::placeholder {
    color: var(--slate-400);
}

/* Buttons */
.btn-modern {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.2s;
    box-shadow: none;
    border: 1px solid transparent;
    height: 50px;
    font-size: 16px;
    cursor: pointer;
}

.btn-primary-modern {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary-modern:hover,
.btn-primary-modern:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.btn-default-modern {
    background-color: white;
    border-color: var(--slate-200);
    color: var(--slate-700);
}

.btn-default-modern:hover {
    background-color: var(--slate-50);
    border-color: var(--slate-400);
    color: var(--slate-700);
}

.btn-block {
    height: 52px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 10px 20px -5px rgba(255, 111, 0, 0.3);
    transition: all 0.2s;
    width: 100%;
}

/* Social Login Button */
.social-login-btn {
    height: 48px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    color: var(--slate-700);
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    width: 100%;
}

.social-login-btn img {
    width: 20px;
    height: 20px;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.auth-divider hr {
    border: 0;
    border-top: 1px solid var(--slate-200);
    margin: 0;
}

.auth-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 15px;
    font-size: 11px;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Links */
.auth-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Remember Me / Forgot Password Row */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.auth-options .checkbox {
    margin: 0;
}

.auth-options .checkbox label {
    font-weight: 500;
    color: var(--slate-700);
    font-size: 14px;
}

/* Footer Text */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--slate-500);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--primary-hover);
}

/* Error/Success Messages */
.alert-modern {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background-color: var(--error-bg);
    border-color: #fecaca;
    color: var(--error-text);
}

.alert-success {
    background-color: var(--success-bg);
    border-color: #bbf7d0;
    color: var(--success-text);
}

.alert-info {
    background-color: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Policy Text */
.policy-text {
    font-size: 12px;
    color: var(--slate-400);
    text-align: center;
    margin-top: 20px;
    line-height: 1.6;
}

.policy-text a {
    color: var(--slate-600);
    text-decoration: underline;
}

.policy-text a:hover {
    color: var(--slate-900);
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Success Icon */
.success-icon {
    width: 72px;
    height: 72px;
    background: var(--success-bg);
    color: var(--success-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

/* Responsive Design */
@media (max-width: 991px) {
    body.auth-page {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .auth-container {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .brand-side {
        display: none;
    }

    .form-side {
        padding: 30px 15px;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .auth-card {
        max-width: 100%;
    }
}

@media (max-width: 767px) {

    .auth-heading h1,
    .auth-heading h2 {
        font-size: 24px;
    }

    .btn-modern {
        height: 46px;
        font-size: 15px;
    }

    .auth-form .form-control {
        height: 44px;
    }
}

/* Override Bootstrap defaults for modern look */
.auth-page .form-control:focus {
    box-shadow: none !important;
    border-color: var(--primary);
}

.auth-page .checkbox input[type="checkbox"] {
    margin-top: 2px;
}

/* Additional Modern Touches */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Password Strength Meter Styling */
#myPassword input[type="password"],
#myPassword input#password {
    height: 50px !important;
    border-radius: 10px !important;
    border: 1px solid var(--slate-200) !important;
    box-shadow: none !important;
    font-size: 15px !important;
    padding: 10px 16px !important;
    transition: all 0.2s !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background-image: none !important;
    background-color: white !important;
}
.button_strength, .strength_meter{display: none !important;}

#myPassword input[type="password"]:focus,
#myPassword input#password:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    background-image: none !important;
}

#myPassword .pass-strength-container {
    margin-top: 8px;
}

#myPassword .pass-strength-bar {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
}

#myPassword .pass-strength-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 600;
}

/* Back to Login Link */
.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-to-login a {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-to-login a:hover {
    color: var(--primary-hover);
}

/* Submit/Cancel Button Group */
.auth-button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.auth-button-group .btn {
    flex: 1;
}

/* Center Logo (Mobile) */
.center-logo-mobile {
    text-align: center;
    margin-bottom: 30px;
}

.center-logo-mobile img {
    max-width: 200px;
    height: auto;
}

@media (min-width: 992px) {
    .center-logo-mobile {
        display: none;
    }
}

/* Password Toggle Eye Icon */
.password-field-wrapper {
    position: relative;
}

.eye-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 10;
    width: 32px;
    height: 32px;
    line-height: 1;
}

.eye-toggle::before {
    content: "👁";
    font-size: 18px;
    display: block;
}

.eye-toggle.hide-password::before {
    content: "🙈";
    font-size: 18px;
}

.eye-toggle .glyphicon {
    display: block;
    font-size: 18px;
    line-height: 1;
}

.eye-toggle:hover {
    color: var(--slate-600);
    background-color: var(--slate-50);
}

.eye-toggle:active {
    color: var(--slate-700);
    background-color: var(--slate-100);
}

.eye-toggle:focus {
    outline-offset: 2px;
}

.eye-toggle .glyphicon {
    font-size: 16px;
    line-height: 1;
}

/* Add padding to password field to prevent text overlap with eye icon */
.password-field-wrapper .form-control {
    padding-right: 48px !important;
}