/*==================================================================
  PROFESSIONAL DEVELOPMENT CALENDAR - WELCOME PAGE
  Modern, Responsive Login & Branding Experience
  Design System: CTS Theme
  Font: Montserrat (400, 500, 600, 700, 800)
==================================================================*/

/* CTS Theme Variables */
:root {
    /* Primary Colors */
    --cts-navy: #020a58;
    --cts-navy-rgb: 2, 10, 88;
    --cts-blue: #113161;
    --cts-lime: #a8d400;
    --cts-lime-rgb: 168, 212, 0;

    /* Secondary Colors */
    --cts-teal: #1badba;
    --cts-teal-rgb: 27, 173, 186;
    --cts-cyan: #00b5cc;
    --cts-gold: #fcbe2c;
    --cts-gold-rgb: 252, 190, 44;

    /* Semantic Colors */
    --cts-success: #006f57;
    --cts-success-light: #98ceb7;
    --cts-success-bg: #e8f5e9;
    --cts-error: #c30029;
    --cts-error-bg: #ffebee;
    --cts-warning: #fcbe2c;
    --cts-info: #1badba;

    /* Neutral Colors */
    --cts-white: #ffffff;
    --cts-gray-900: #333333;
    --cts-gray-600: #666666;
    --cts-gray-500: #888888;
    --cts-gray-400: #999999;
    --cts-gray-200: #e5e5e5;
    --cts-gray-100: #f3f4f7;

    /* Legacy support */
    --navy-primary: #020a58;
    --yellow-accent: #fcbe2c;
    --turquoise-secondary: #1badba;
    --white: #ffffff;
    --light-gray: #f3f4f7;
    --medium-gray: #666666;
    --error-red: #c30029;
    --success-green: #006f57;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(2, 10, 88, 0.08);
    --shadow-md: 0 4px 12px rgba(2, 10, 88, 0.12);
    --shadow-lg: 0 8px 24px rgba(2, 10, 88, 0.16);
    --shadow-xl: 0 16px 48px rgba(2, 10, 88, 0.2);

    /* Transitions */
    --transition-fast: 100ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "MontserratRegular400", "Montserrat", sans-serif;
    background: var(--light-gray);
    color: var(--navy-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Main Container - Split Screen Layout */
.welcome-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/*==================================================================
  LEFT PANEL - BRANDING & INFORMATION
==================================================================*/

.welcome-left {
    flex: 1;
    background: linear-gradient(135deg, var(--navy-primary) 0%, #030d75 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}

.welcome-left-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.welcome-left-content.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Logo */
.logo-container {
    margin-bottom: 48px;
    animation: fadeInDown 0.8s ease;
}

.login-logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Hero Content */
.hero-content {
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title {
    font-family: "MontserratExtraBold800", "Montserrat", sans-serif;
    font-size: 42px;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 16px;
}

.hero-highlight {
    display: block;
    background: linear-gradient(90deg, var(--cts-lime), var(--cts-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: "MontserratMedium500", "Montserrat", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Feature Cards */
.features-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(8px);
    border-color: var(--cts-gold);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--cts-teal), var(--cts-lime));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 22px;
    color: var(--white);
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-family: "MontserratSemiBold600", "Montserrat", sans-serif;
    font-size: 16px;
    color: var(--white);
    margin-bottom: 4px;
}

.feature-text {
    font-family: "MontserratRegular400", "Montserrat", sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

/* Welcome Footer */
.welcome-footer {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.8s ease 0.6s both;
}

.footer-text {
    font-family: "MontserratMedium500", "Montserrat", sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-text i {
    color: var(--cts-lime);
}

.footer-copyright {
    font-family: "MontserratRegular400", "Montserrat", sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Decorative Circles */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(168, 212, 0, 0.1),
        rgba(27, 173, 186, 0.1)
    );
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
    animation: float 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation: pulse 8s ease-in-out infinite;
}

/*==================================================================
  RIGHT PANEL - LOGIN FORM
==================================================================*/

.welcome-right {
    flex: 1;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.login-card {
    width: 100%;
    max-width: 480px;
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.login-card.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-family: "MontserratBold700", "Montserrat", sans-serif;
    font-size: 32px;
    color: var(--cts-navy);
    margin-bottom: 8px;
}

.login-subtitle {
    font-family: "MontserratRegular400", "Montserrat", sans-serif;
    font-size: 16px;
    color: var(--cts-gray-600);
}

/* Login Form */
.login-form {
    margin-bottom: 24px;
}

/* Alert Error */
.alert-error {
    background: var(--cts-error-bg);
    border: 1px solid var(--cts-error);
    border-left: 4px solid var(--cts-error);
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "MontserratMedium500", "Montserrat", sans-serif;
    font-size: 14px;
    color: var(--cts-error);
    animation: shake 0.4s ease;
}

.alert-error i {
    font-size: 18px;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    font-family: "MontserratSemiBold600", "Montserrat", sans-serif;
    font-size: 14px;
    color: var(--cts-navy);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: var(--cts-teal);
    font-size: 16px;
}

/* Form Inputs */
.form-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-family: "MontserratRegular400", "Montserrat", sans-serif;
    font-size: 15px;
    color: var(--cts-navy);
    background: var(--cts-white);
    border: 1px solid var(--cts-navy);
    border-radius: 2px;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus {
    border-color: var(--cts-teal);
    box-shadow: 0 0 0 3px rgba(var(--cts-teal-rgb), 0.15);
}

.form-input::placeholder {
    color: #9ca3af;
}

.input-error {
    border-color: var(--cts-error);
}

.input-error:focus {
    border-color: var(--cts-error);
    box-shadow: 0 0 0 3px rgba(195, 0, 41, 0.15);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-family: "MontserratMedium500", "Montserrat", sans-serif;
    font-size: 13px;
    color: var(--error-red);
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--cts-gray-600);
    cursor: pointer;
    padding: 8px;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--cts-navy);
}

.password-toggle i {
    font-size: 18px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--cts-navy);
}

.remember-text {
    font-family: "MontserratRegular400", "Montserrat", sans-serif;
    font-size: 14px;
    color: var(--cts-navy);
}

.forgot-link {
    font-family: "MontserratMedium500", "Montserrat", sans-serif;
    font-size: 14px;
    color: var(--cts-teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.forgot-link:hover {
    color: var(--cts-gold);
    text-decoration: underline;
}

/* Submit Button */
.submit-button {
    width: 100%;
    height: 56px;
    background: linear-gradient(
        135deg,
        var(--cts-navy) 0%,
        var(--cts-blue) 100%
    );
    color: var(--cts-white);
    border: 2px solid var(--cts-navy);
    border-radius: 2px;
    font-family: "MontserratSemiBold600", "Montserrat", sans-serif;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.submit-button:hover {
    background: var(--cts-blue);
    border-color: var(--cts-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.submit-button i {
    transition: transform var(--transition-fast);
}

.submit-button:hover i {
    transform: translateX(4px);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
}

.divider-text {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: var(--cts-white);
    font-family: "MontserratRegular400", "Montserrat", sans-serif;
    font-size: 13px;
    color: var(--cts-gray-600);
}

/* SSO Options */
.sso-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.sso-button {
    height: 48px;
    background: var(--cts-white);
    border: 2px solid var(--cts-gray-200);
    border-radius: 2px;
    font-family: "MontserratMedium500", "Montserrat", sans-serif;
    font-size: 14px;
    color: var(--cts-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.sso-button:hover {
    border-color: var(--cts-teal);
    background: var(--cts-gray-100);
}

.sso-button.microsoft i {
    color: #00a4ef;
}

.sso-button.google i {
    color: #ea4335;
}

/* Login Help */
.login-help {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.help-text {
    font-family: "MontserratRegular400", "Montserrat", sans-serif;
    font-size: 14px;
    color: var(--cts-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.help-text i {
    color: var(--cts-teal);
}

.help-link {
    color: var(--cts-teal);
    text-decoration: none;
    font-family: "MontserratMedium500", "Montserrat", sans-serif;
    transition: color var(--transition-fast);
}

.help-link:hover {
    color: var(--cts-gold);
    text-decoration: underline;
}

/*==================================================================
  ANIMATIONS
==================================================================*/

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/*==================================================================
  RESPONSIVE DESIGN
==================================================================*/

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .welcome-left {
        padding: 40px 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .login-logo {
        max-width: 240px;
    }
}

/* Mobile & Tablet Portrait (max-width: 768px) */
@media screen and (max-width: 768px) {
    .welcome-container {
        flex-direction: column;
    }

    .welcome-left {
        min-height: auto;
        padding: 40px 24px;
    }

    .welcome-left-content {
        max-width: 100%;
    }

    .logo-container {
        margin-bottom: 32px;
        text-align: center;
    }

    .login-logo {
        max-width: 200px;
    }

    .hero-content {
        margin-bottom: 32px;
        text-align: center;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .features-grid {
        gap: 16px;
        margin-bottom: 32px;
    }

    .feature-card {
        padding: 16px;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
    }

    .feature-icon i {
        font-size: 20px;
    }

    .feature-title {
        font-size: 15px;
    }

    .feature-text {
        font-size: 13px;
    }

    .welcome-footer {
        text-align: center;
    }

    .footer-text {
        justify-content: center;
    }

    /* Hide decorative circles on mobile */
    .decorative-circle {
        display: none;
    }

    .welcome-right {
        padding: 40px 24px;
    }

    .login-title {
        font-size: 26px;
    }

    .login-subtitle {
        font-size: 15px;
    }

    .sso-options {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    .welcome-left {
        padding: 32px 20px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .feature-card {
        padding: 14px;
        gap: 12px;
    }

    .welcome-right {
        padding: 32px 20px;
    }

    .login-header {
        margin-bottom: 32px;
    }

    .login-title {
        font-size: 24px;
    }

    .form-input {
        height: 48px;
        font-size: 14px;
    }

    .submit-button {
        height: 52px;
        font-size: 15px;
    }
}

/*==================================================================
  ACCESSIBILITY ENHANCEMENTS
==================================================================*/

/* Focus visible for keyboard navigation - CTS Gold */
*:focus-visible {
    outline: 2px solid var(--cts-gold);
    outline-offset: 2px;
}

/* Reduce motion for users with motion sensitivity */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card {
        border-width: 2px;
    }

    .form-input {
        border-width: 2px;
    }
}

/*==================================================================
  PRINT STYLES
==================================================================*/

@media print {
    .welcome-left,
    .decorative-circle,
    .features-grid,
    .sso-options {
        display: none;
    }

    .welcome-right {
        padding: 0;
    }
}
