﻿/* Full viewport height, center flex container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #001f4d44;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 2px solid #4b5985;
    box-shadow: 0 10px 30px rgba(0, 31, 77, 0.9);
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    position: relative;
}

/* PalletVision Logo */
    .login-form::before {
        content: '';
        background-image: url('/media/pv_logo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 80px;
        height: 80px;
        position: absolute;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
        border: 4px solid white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        background-color: #1a1a1a;
    }

h4 {
    color: #374151;
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0 0;
}

/* Kendo textbox containers */
.k-textbox-container,
.k-floating-label-container {
    width: 100%;
}

/* Password container and toggle - unified for all password fields */
.password-container {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    color: #6b7280;
    z-index: 10;
    font-size: 18px;
}

.password-toggle:hover {
    color: #3b82f6;
}

/* Kendo button styling */
.k-button.k-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    width: 100%;
    padding: 10px 20px;
    font-weight: 600;
}

    .k-button.k-primary:hover {
        background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
        border: none;
        transform: translateY(-1px);
        transition: all 0.3s ease;
    }

/* Forgot password styling */
.forgot-password-container {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    width: 100%;
    text-align: center;
}

.forgot-password-link {
    color: #1e3c72;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password-link:hover {
    color: #2a5298;
    text-decoration: underline;
}

/* Error message styling */
.text-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    height: 25px;
    margin: -10px 0;
    color: #dc2626;
    font-size: 14px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Shared Modal Styles */
#changePasswordWindow,
#passwordResetWindow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#changePasswordWindow .modal-content,
#passwordResetWindow .modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#changePasswordWindow .modal-body,
#passwordResetWindow .modal-body {
    padding: 1.5rem;
}

#changePasswordWindow .form-group,
#passwordResetWindow .form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

#changePasswordWindow .form-group label,
#passwordResetWindow .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
}

#changePasswordWindow .k-textbox,
#passwordResetWindow .k-textbox,
#passwordResetWindow input[type="text"],
#passwordResetWindow input[type="password"] {
    width: 100%;
    padding: 0.65rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f9fafb;
    transition: all 0.2s ease;
}

#changePasswordWindow .k-textbox:focus,
#passwordResetWindow .k-textbox:focus,
#passwordResetWindow input[type="text"]:focus,
#passwordResetWindow input[type="password"]:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    background: white;
}

#changePasswordWindow .k-textbox.error {
    border-color: #dc2626;
    background: #fef2f2;
}

#changePasswordWindow .k-textbox.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

#changePasswordWindow .form-actions,
#passwordResetWindow .form-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

#passwordResetWindow .k-button {
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#passwordResetWindow .k-button:not(.k-primary) {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

#passwordResetWindow .k-button:not(.k-primary):hover {
    background: #e9ecef;
}

#passwordResetWindow .k-button.k-primary {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
}

#passwordResetWindow .k-button.k-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

#changePasswordWindow .field-validation-error,
#passwordResetWindow .field-validation-error {
    display: block;
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Change Password Window Specific */
#changePasswordWindow .modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 1.5rem;
    text-align: center;
}

#changePasswordWindow .modal-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 400;
}

#changePasswordWindow .k-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
}

#changePasswordWindow .k-button:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#changePasswordWindow .security-tips {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 1rem;
    font-size: 12px;
    color: #0369a1;
}

#changePasswordWindow .security-tips h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

#changePasswordWindow .security-tips ul {
    margin: 0;
    padding-left: 16px;
}

#changePasswordWindow .security-tips li {
    margin-bottom: 4px;
}

/* Password Reset Window Specific */
#passwordResetWindow {
    z-index: 10000;
}

#passwordResetWindow .modal-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-bottom: none;
    width: 100%;
    box-sizing: border-box;
}

#passwordResetWindow .modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.35rem;
    font-weight: 400;
}

#passwordResetWindow .modal-body p {
    color: #495057;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.reset-step {
    min-height: 150px;
}

#deliveryDestination {
    font-weight: 600;
    color: #1e3c72;
}

#verificationCode {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.4rem;
    font-weight: 600;
}

/* OAuth/SSO Provider Button Styles */
.oauth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0 15px;
    width: 100%;
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.oauth-divider span {
    padding: 0 15px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.oauth-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.oauth-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.oauth-btn-google {
    border-color: #e5e7eb;
}

.oauth-btn-google:hover {
    border-color: #4285f4;
    background: #f8f9ff;
}

.oauth-btn-microsoft {
    border-color: #e5e7eb;
}

.oauth-btn-microsoft:hover {
    border-color: #00a4ef;
    background: #f8fcff;
}

.oauth-btn-apple {
    border-color: #e5e7eb;
}

.oauth-btn-apple:hover {
    border-color: #000000;
    background: #f8f8f8;
}

/* Toast notifications now use global system in site.css */
