/* ========================================
   Sign Up Page Styles
   ======================================== */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-color: #5D5DF2;
    --primary01: rgba(93, 93, 242, 0.1);
    --primary03: rgba(93, 93, 242, 0.3);
    --primary08: rgba(93, 93, 242, 0.8);
}

/* ========================================
   Base Styles
   ======================================== */
.app-header{
    border-block-end: none !important;
}

.field-validation-error span {
    color: #ff4444 !important;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ========================================
   Header Styles
   ======================================== */
.app-header {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(90deg, rgba(70, 30, 100, 0.95) 0%, rgba(70, 30, 100, 0.85) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 70px;
}

/* Adjust header position when training banner is present */
body.has-training-banner .app-header {
    top: 52px; /* Height of training banner */
}

body:not(.has-training-banner) .app-header {
    top: 0;
}

.main-header-container {
    height: 70px;
    display: flex;
    align-items: center;
}

.header-content-left {
    height: 100%;
    display: flex;
    align-items: center;
}

.horizontal-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

/* ========================================
   Content Area & Layout
   ======================================== */
.content-area {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: url('/assets/images/sample/background_signin.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.signin-container {
    min-height: 100vh;
    padding-left: 3rem;
    padding-right: 3rem;
}

/* Adjust padding based on training banner presence */
body.has-training-banner .signin-container {
    padding-top: 122px; /* 52px banner + 70px header */
}

body:not(.has-training-banner) .signin-container {
    padding-top: 70px; /* Just header */
}

/* ========================================
   Hero Section
   ======================================== */
.signin-left {
    display: flex;
    justify-content: center;
    position: relative;
    color: white;
    padding: 3rem 2rem;
}

.wp-hero-content {
    padding: 20px 30px;
}

.hero-content {
    align-self: start;
    text-align: center;
    padding: 20px 30px;
    background-color: rgba(70, 30, 100, 0.6);
    border-radius: 6px;
    margin-top: 200px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.3;
}

/* ========================================
   Form Container
   ======================================== */
.signin-right {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signin-form-container {
    width: 100%;
}

.signin-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: none;
}

.signin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signin-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.signin-subtitle {
    color: #f0f0f0;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Form Elements
   ======================================== */
.form-group {
    margin-bottom: 1.25rem;
}

/* Row spacing for 2-column layout */
.row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row > [class*='col-'] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Alert styling for blur background */
.alert {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #2c3e50;
}

.alert-success {
    background-color: rgba(200, 255, 200, 0.9);
    border-color: rgba(144, 238, 144, 0.5);
}

.alert-danger {
    background-color: rgba(255, 200, 200, 0.9);
    border-color: rgba(255, 99, 71, 0.5);
}

.text-danger {
    color: #ff4444 !important;
    font-weight: 500;
}

.form-label {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.9);
    width: 100%;
    color: #2c3e50;
    height: auto;
}

.form-control:focus {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    outline: none;
    background-color: rgba(255, 255, 255, 1);
}

.form-control.is-invalid {
    border-color: #ff4444;
    background-color: rgba(255, 200, 200, 0.9);
}

.form-control::placeholder {
    color: #6c757d;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.form-check-input:checked {
    background-color: #000;
    border-color: #000;
}

.form-check-input.is-invalid {
    border-color: #ff4444;
}

.form-check-label {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
}

.form-check-label a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
}

.form-check-label a:hover {
    color: #f0f0f0;
}

/* ========================================
   Password Toggle Styles
   ======================================== */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #495057;
}

.password-toggle-btn:focus {
    outline: none;
}

/* ========================================
   Button Styles
   ======================================== */
.btn-signin {
    background: #000;
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-top: 0.5rem;
    position: relative;
}

.btn-signin:hover {
    background: #461E64;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(70, 30, 100, 0.3);
}

.btn-signin:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.btn-signin:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ========================================
   Password Requirements
   ======================================== */
.password-requirements {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.password-req-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.password-req-item.valid {
    color: #4CAF50;
}

.password-req-icon {
    font-size: 0.5rem;
    margin-right: 0.5rem;
}

.forgot-link {
    color: #ffffff;
    font-weight: 500;
    text-decoration: underline;
}

.forgot-link:hover {
    color: #f0f0f0;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 992px) {
    .signin-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .signin-left {
        display: none;
    }

    .signin-right {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .hero-content {
        margin-top: 100px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .signin-right {
        padding: 1.5rem;
    }

    .signin-title {
        font-size: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}

