/**
 * Chase Custom Designs - Login Page Styles
 * Brand Color: #2a4696
 */

/* Reset any WordPress or theme interference */
.wcq-login-container * {
    box-sizing: border-box;
}

.wcq-login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a4696 0%, #1e3470 100%);
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wcq-login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    width: 100%;
    max-width: 95%;
    animation: slideIn 0.5s ease-out;
}

@media (min-width: 640px) {
    .wcq-login-box {
        padding: 50px 50px;
        max-width: 500px;
    }
}

@media (min-width: 768px) {
    .wcq-login-box {
        padding: 50px 50px;
        max-width: 520px;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo - Much Smaller */
.wcq-login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.wcq-login-logo img {
    max-width: 80px !important;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .wcq-login-logo img {
        max-width: 100px !important;
    }
}

.wcq-login-logo img[src=""] {
    display: none;
}

/* Header */
.wcq-login-header {
    text-align: center;
    margin-bottom: 40px;
}

.wcq-login-header h2 {
    color: #2a4696;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .wcq-login-header h2 {
        font-size: 38px;
    }
}

.wcq-login-header p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Error Message */
.wcq-login-error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 30px;
    color: #c00;
    font-size: 15px;
    text-align: center;
}

.wcq-login-error p {
    margin: 0;
}

/* Form */
.wcq-login-form {
    margin-bottom: 30px;
    width: 100%;
}

.wcq-form-group {
    margin-bottom: 24px;
}

.wcq-form-group label {
    display: block;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.wcq-form-group input[type="text"],
.wcq-form-group input[type="password"] {
    width: 100% !important;
    padding: 14px 18px;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white !important;
    color: #374151 !important;
}

.wcq-form-group input[type="text"]:focus,
.wcq-form-group input[type="password"]:focus {
    outline: none !important;
    border-color: #2a4696 !important;
    box-shadow: 0 0 0 4px rgba(42, 70, 150, 0.1) !important;
}

/* Checkbox */
.wcq-form-group-checkbox {
    margin-bottom: 30px;
}

.wcq-form-group-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #374151;
    font-size: 15px;
}

.wcq-form-group-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
    cursor: pointer;
    accent-color: #2a4696;
}

/* Login Button - Override Everything */
.wcq-login-btn,
button.wcq-login-btn,
.wcq-login-form button[type="submit"],
.wcq-login-form .wcq-login-btn {
    width: 100% !important;
    background: #2a4696 !important;
    background-color: #2a4696 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 16px 30px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 20px rgba(42, 70, 150, 0.4) !important;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.wcq-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.wcq-login-btn:hover,
button.wcq-login-btn:hover {
    background: #1e3470 !important;
    background-color: #1e3470 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(42, 70, 150, 0.6) !important;
    color: #ffffff !important;
    border: none !important;
}

.wcq-login-btn:hover::before {
    left: 100%;
}

.wcq-login-btn:active,
button.wcq-login-btn:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 2px 10px rgba(42, 70, 150, 0.4) !important;
    transition: all 0.1s ease !important;
    background: #1e3470 !important;
    border: none !important;
}

.wcq-login-btn:focus,
button.wcq-login-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(42, 70, 150, 0.2) !important;
    background: #2a4696 !important;
    border: none !important;
}

.wcq-login-btn span {
    color: #ffffff !important;
    position: relative;
    z-index: 1;
    display: inline-block;
    font-weight: 600 !important;
}

.wcq-btn-icon {
    width: 22px !important;
    height: 22px !important;
    color: #ffffff !important;
    fill: none !important;
    stroke: currentColor !important;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.wcq-login-btn:hover .wcq-btn-icon {
    transform: translateX(4px);
}

/* Footer */
.wcq-login-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: 24px;
}

.wcq-login-footer p {
    margin: 10px 0;
    font-size: 15px;
    color: #6b7280;
}

.wcq-login-footer a {
    color: #2a4696;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.wcq-login-footer a:hover {
    color: #1e3470;
    text-decoration: underline;
}

/* Branding Footer */
.wcq-login-branding {
    margin-top: 30px;
    text-align: center;
}

.wcq-login-branding p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .wcq-login-box {
        padding: 40px 30px;
    }
    
    .wcq-login-header h2 {
        font-size: 28px;
    }
    
    .wcq-login-logo img {
        max-width: 70px !important;
    }
    
    .wcq-login-btn {
        padding: 14px 24px !important;
        font-size: 16px !important;
    }
}

/* Loading State */
.wcq-login-btn:disabled,
button.wcq-login-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.wcq-login-btn:disabled:hover {
    transform: none !important;
}

/* Already Logged In Styles */
.wcq-already-logged-in {
    text-align: center;
    max-width: 600px !important;
}

.wcq-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: #10b981;
    animation: scaleIn 0.5s ease-out;
}

.wcq-success-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.wcq-logged-in-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}

/* Logout Button */
.wcq-logout-btn {
    width: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #6b7280 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 14px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.wcq-logout-btn:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.wcq-logout-btn:active {
    transform: translateY(0) scale(0.98) !important;
}

.wcq-logout-icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

/* Ensure full-width background on desktop */
body .wcq-login-container {
    width: 100vw !important;
    margin: 0 !important;
    padding: 30px 20px !important;
    min-width: 100% !important;
}

/* Override any WordPress container constraints */
.wcq-login-container {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
}
