/**
 * Authentication Pages Styles
 * 
 * Styling for login and registration page templates
 *
 * @package Videohub360_Theme
 * @since 1.0.0
 */

/* Auth Page Container */
.vh360-auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--auth-page-bg);
}

.vh360-auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: var(--auth-form-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-height: 600px;
}

/* Welcome Section (Left Side) */
.vh360-auth-welcome {
    background: linear-gradient(135deg, var(--auth-welcome-bg-start) 0%, var(--auth-welcome-bg-end) 100%);
    color: var(--auth-welcome-text);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vh360-auth-welcome-content {
    max-width: 400px;
}

.vh360-auth-logo {
    margin-bottom: 2rem;
}

.vh360-auth-logo img {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.vh360-auth-site-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--auth-welcome-text);
}

.vh360-auth-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--auth-welcome-text);
}

.vh360-auth-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--auth-welcome-text);
}

/* Features List */
.vh360-auth-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vh360-auth-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vh360-auth-feature-icon {
    font-size: 1.5rem;
}

.vh360-auth-feature-text {
    font-size: 1rem;
}

/* Benefits List */
.vh360-auth-benefits {
    margin-top: 2rem;
}

.vh360-auth-benefits-title {
    color: var(--auth-welcome-text);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.vh360-auth-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vh360-auth-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.vh360-auth-benefit-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Form Section (Right Side) */
.vh360-auth-form-wrapper {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-form-bg);
}

.vh360-auth-form-content {
    width: 100%;
    max-width: 400px;
}

.vh360-auth-form-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--auth-form-title);
}

/* Messages */
.vh360-auth-error,
.vh360-auth-success {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.vh360-auth-error {
    background: var(--auth-error-bg);
    color: var(--auth-error-text);
    border-left: 4px solid var(--auth-error-text);
}

.vh360-auth-success {
    background: var(--auth-success-bg);
    color: var(--auth-success-text);
    border-left: 4px solid var(--auth-success-text);
}

/* Form Styles */
.vh360-auth-form,
#vh360-loginform {
    margin-top: 1.5rem;
}

.vh360-auth-field,
#vh360-loginform p {
    margin-bottom: 1.25rem;
}

.vh360-auth-field label,
#vh360-loginform label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--auth-label);
    font-size: 0.95rem;
}

.required {
    color: var(--auth-error-text);
    margin-left: 2px;
}

.vh360-auth-form input[type="text"],
.vh360-auth-form input[type="email"],
.vh360-auth-form input[type="password"],
.vh360-auth-form input[type="url"],
.vh360-auth-form input[type="tel"],
.vh360-auth-form textarea,
.vh360-auth-form select,
.vh360-auth-input,
#vh360-loginform input[type="text"],
#vh360-loginform input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--auth-input-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
    color: var(--auth-input-text);
    background-color: var(--auth-input-bg);
}

.vh360-auth-form input[type="text"]:focus,
.vh360-auth-form input[type="email"]:focus,
.vh360-auth-form input[type="password"]:focus,
.vh360-auth-form input[type="url"]:focus,
.vh360-auth-form input[type="tel"]:focus,
.vh360-auth-form textarea:focus,
.vh360-auth-form select:focus,
.vh360-auth-input:focus,
#vh360-loginform input[type="text"]:focus,
#vh360-loginform input[type="password"]:focus {
    outline: none;
    border-color: var(--auth-input-focus-border);
    box-shadow: 0 0 0 3px var(--auth-input-focus-shadow);
}

.vh360-auth-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.85rem;
    color: var(--auth-muted-text);
}

/* Checkbox Field */
.vh360-auth-checkbox label,
#vh360-loginform .login-remember label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.vh360-auth-checkbox input[type="checkbox"],
#vh360-loginform input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.vh360-auth-checkbox a {
    color: var(--auth-link);
    text-decoration: none;
}

.vh360-auth-checkbox a:hover {
    text-decoration: underline;
    color: var(--auth-link);
}

/* Submit Button */
.vh360-auth-page button.vh360-auth-submit[type="submit"],
.vh360-auth-page input.vh360-auth-submit[type="submit"],
.vh360-auth-page .vh360-auth-submit,
.vh360-auth-page #vh360-loginform .button-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--auth-button-bg-start) 0%, var(--auth-button-bg-end) 100%);
    color: var(--auth-button-text);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.vh360-auth-page button.vh360-auth-submit[type="submit"]:hover,
.vh360-auth-page input.vh360-auth-submit[type="submit"]:hover,
.vh360-auth-page .vh360-auth-submit:hover,
.vh360-auth-page #vh360-loginform .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--auth-button-hover-shadow);
}

.vh360-auth-page button.vh360-auth-submit[type="submit"]:active,
.vh360-auth-page input.vh360-auth-submit[type="submit"]:active,
.vh360-auth-page .vh360-auth-submit:active,
.vh360-auth-page #vh360-loginform .button-primary:active {
    transform: translateY(0);
}

/* Auth Links */
.vh360-auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--auth-muted-text);
}

.vh360-auth-link {
    color: var(--auth-link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.vh360-auth-link:hover {
    color: var(--auth-link);
    text-decoration: underline;
}

.vh360-auth-separator {
    margin: 0 0.5rem;
}

/* WordPress Login Form Overrides */
#vh360-loginform {
    margin-top: 0;
}

#vh360-loginform p.login-remember {
    margin-bottom: 0.5rem;
}

#vh360-loginform p.login-submit {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .vh360-auth-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .vh360-auth-welcome {
        padding: 2rem;
    }
    
    .vh360-auth-heading {
        font-size: 2rem;
    }
    
    .vh360-auth-features,
    .vh360-auth-benefits {
        display: none;
    }
}

@media (max-width: 576px) {
    .vh360-auth-page {
        padding: 1rem 0.5rem;
    }
    
    .vh360-auth-container {
        border-radius: 12px;
    }
    
    .vh360-auth-welcome {
        padding: 1.5rem;
    }
    
    .vh360-auth-form-wrapper {
        padding: 1.5rem;
    }
    
    .vh360-auth-heading {
        font-size: 1.75rem;
    }
    
    .vh360-auth-description {
        font-size: 1rem;
    }
    
    .vh360-auth-form-title {
        font-size: 1.5rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .vh360-auth-container {
        background: var(--auth-form-bg);
    }
    
    .vh360-auth-form-wrapper {
        background: var(--auth-form-bg);
    }
    
    .vh360-auth-form-title {
        color: var(--auth-form-title);
    }
    
    .vh360-auth-field label,
    #vh360-loginform label {
        color: var(--auth-label);
    }
    
    .vh360-auth-form input[type="text"],
    .vh360-auth-form input[type="email"],
    .vh360-auth-form input[type="password"],
    .vh360-auth-form input[type="url"],
    .vh360-auth-form input[type="tel"],
    .vh360-auth-form textarea,
    .vh360-auth-form select,
    .vh360-auth-input,
    #vh360-loginform input[type="text"],
    #vh360-loginform input[type="password"] {
        background: var(--auth-input-bg);
        border-color: var(--auth-input-border);
        color: var(--auth-input-text);
    }
    
    .vh360-auth-links {
        color: var(--auth-muted-text);
    }
}

/* ===============================================
   Registration Landing Page Styles
   =============================================== */

/* Registration Choice Container - Override grid for single column layout */
.vh360-registration-choice-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    padding: 3rem;
}

/* Header Section */
.vh360-registration-choice-header {
    text-align: center;
    margin-bottom: 3rem;
}

.vh360-registration-choice-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    color: var(--auth-form-title);
    line-height: 1.2;
}

.vh360-registration-choice-description {
    font-size: 1.125rem;
    color: var(--auth-muted-text);
    margin-bottom: 0;
}

/* Choice Cards Grid */
.vh360-registration-choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Individual Registration Card */
.vh360-registration-card {
    background: var(--auth-form-bg);
    border: 2px solid var(--auth-input-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.vh360-registration-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--auth-input-focus-border);
}

/* Icon */
.vh360-registration-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--auth-welcome-bg-start) 0%, var(--auth-welcome-bg-end) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.vh360-registration-card-icon svg {
    color: white;
}

/* Card Title */
.vh360-registration-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--auth-form-title);
}

/* Card Description */
.vh360-registration-card-description {
    font-size: 1rem;
    color: var(--auth-muted-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Features List */
.vh360-registration-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    width: 100%;
}

.vh360-registration-card-features li {
    padding: 0.5rem 0;
    text-align: left;
    color: var(--auth-muted-text);
    position: relative;
    padding-left: 1.5rem;
}

.vh360-registration-card-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--auth-welcome-bg-end);
    font-weight: bold;
}

/* Choice Button */
.vh360-registration-card-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    margin-top: auto;
}

.vh360-registration-card .vh360-button,
.vh360-registration-card .vh360-button-primary,
.vh360-registration-card .vh360-button-secondary,
.vh360-registration-card-button {
    background: linear-gradient(135deg, var(--auth-button-bg-start) 0%, var(--auth-button-bg-end) 100%);
    color: var(--auth-button-text);
    border-color: transparent;
}

.vh360-registration-card .vh360-button:hover,
.vh360-registration-card .vh360-button-primary:hover,
.vh360-registration-card .vh360-button-secondary:hover,
.vh360-registration-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--auth-button-hover-shadow);
    color: var(--auth-button-text);
}

/* Responsive Design for Registration Landing */
@media (max-width: 768px) {
    .vh360-registration-choice-container {
        padding: 2rem 1.5rem;
    }

    .vh360-registration-choice-title {
        font-size: 1.75rem;
    }

    .vh360-registration-choice-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vh360-registration-card {
        padding: 1.5rem;
    }

    .vh360-registration-card-icon {
        width: 64px;
        height: 64px;
    }

    .vh360-registration-card-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* Invite-only registration field */
.vh360-password-input-wrap {
    display: block;
    position: relative;
}

.vh360-password-input-wrap input {
    padding-right: 3rem;
    width: 100%;
}

.vh360-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: currentColor;
    cursor: pointer;
    display: flex;
    height: 2.75rem;
    justify-content: center;
    opacity: .65;
    padding: .65rem;
    position: absolute;
    right: .2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
}

.vh360-password-toggle:hover,
.vh360-password-toggle:focus-visible {
    opacity: 1;
}

.vh360-password-toggle:focus-visible {
    outline: 2px solid var(--auth-input-focus-border);
    outline-offset: -4px;
}

.vh360-password-toggle svg {
    fill: none;
    height: 1.25rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 1.25rem;
}

.vh360-password-eye-off,
.vh360-password-toggle[aria-pressed="true"] .vh360-password-eye {
    display: none;
}

.vh360-password-toggle[aria-pressed="true"] .vh360-password-eye-off {
    display: block;
}

.vh360-invite-code-field .vh360-auth-hint {
    display: block;
    margin-top: 0.35rem;
}
