* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: #0a2540;
    overflow: hidden;
}

/* Main Container - Two Column Layout */
.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Column - Login Form */
.login-left {
    flex: 0 0 480px;
    background: #00234D;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 60px 40px 60px;
    z-index: 3;
}

.login-content {
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 4;
}

.logo-container {
    margin-bottom: 60px;
}

.logo-container a {
    display: inline-block;
    cursor: pointer;
}

.logo {
    height: 32px;
    width: auto;
}

.welcome-title {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

.reset-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.reset-subtitle strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    display: block;
    margin-top: 8px;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.back-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin-top: 16px;
    transition: color 0.2s;
}

.back-link:hover {
    color: rgba(255, 255, 255, 1);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: all 0.2s;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.btn-primary {
    background: #2b7de9;
    color: #ffffff;
    margin-top: 8px;
}

.btn-primary:hover {
    background: #2470d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 125, 233, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Google Sign-In Button */
.btn-google {
    background: #ffffff;
    color: #3c4043;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    margin-top: 16px;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-google:active {
    transform: translateY(0);
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-google .spinner-border-sm {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

/* Apple Sign-In Button - Following Apple's Human Interface Guidelines */
/* White variant for dark backgrounds */
.btn-apple {
    background: #ffffff;
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    margin-top: 12px;
    min-height: 44px;
}

.btn-apple:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-apple:active {
    transform: translateY(0);
}

.btn-apple:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-apple .spinner-border-sm {
    width: 18px;
    height: 18px;
    border-width: 2px;
    border-color: #000000;
    border-right-color: transparent;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 16px;
}

/* Alert Styles */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-danger p {
    margin: 0;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-success p {
    margin: 0;
}

/* Form Text */
.form-text {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Utility Classes */
.d-none {
    display: none !important;
}

.d-none-sent {
    display: block;
}

.alert-success ~ .d-none-sent {
    display: none;
}

.text-center {
    text-align: center;
}

.font-weight-bold {
    font-weight: 600;
}

/* Loading Spinner */
.lds-ring {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 60px;
    margin: 20px auto 0;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 44px;
    height: 44px;
    margin: 6px;
    border: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: rgba(255, 255, 255, 0.8) transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Right Column - Marketing Content */
.login-right {
    flex: 1;
    background-color: #053875;
    background-image: url('silhouettes.png');
    background-position: center bottom;
    background-repeat: repeat-x;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    z-index: 3;
}

.marketing-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 700px;
    padding-bottom: 200px;
}

.marketing-title {
    font-size: 26px;
    color: #A2DDFE;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.marketing-title .title-bold {
    font-weight: 600;
}

.marketing-title .title-light {
    font-weight: 300;
}

/* Integrations Container */
.integrations-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .marketing-title {
        font-size: 24px;
    }
}

@media (max-width: 1000px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        flex: 1;
        min-height: 100vh;
        padding: 30px 20px;
    }

    .login-right {
        display: none;
    }

    .login-content {
        max-width: 400px;
    }

    .logo {
        height: 36px;
    }

    .welcome-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
}

@media (max-width: 576px) {
    .login-left {
        padding: 20px 16px;
    }

    .login-content {
        max-width: 100%;
    }

    .logo-container {
        margin-bottom: 40px;
    }

    .logo {
        height: 32px;
    }

    .welcome-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Landscape mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
    .login-left {
        padding: 20px;
        overflow-y: auto;
    }

    .logo-container {
        margin-bottom: 20px;
    }

    .logo {
        height: 28px;
    }

    .welcome-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 16px;
    }
}
