/* Background image - overridden by template */
.login-pf body {
    background: url("../img/other_bg.png") no-repeat center center fixed !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Force background image on all body elements */
body {
    background: url("../img/other_bg.png") no-repeat center center fixed !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}


/* Pilot Warning Message */
.pilot-warning {
    width: 100%;
    margin: 0 0 20px 0;
    padding: 12px;
    background-color: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pilot-warning-icon {
    color: #f59e0b;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1.5;
}

.pilot-warning-content {
    flex: 1;
}

.pilot-warning-title {
    font-family: Muli, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #78350f;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.pilot-warning-text {
    font-family: Muli, Arial, sans-serif;
    font-size: 11px;
    color: #78350f;
    margin: 3px 0;
    line-height: 1.4;
}


/* Logo styling - integrated into template */
.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-image: url("../img/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* Hide default Keycloak header */
#kc-header {
    display: none;
}

/* Modern card styling - integrated into template */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.625rem;
    box-shadow: 0 18px 22px -5px rgba(0, 0, 0, 0.08), 0 8px 8px -5px rgba(0, 0, 0, 0.04);
    padding: 1rem;
    width: 100%;
    max-width: 380px;
    border: 1px solid #e5e7eb;
    backdrop-filter: blur(8px);
}


/* Modern button styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-family: inherit;
}

.btn-primary {
    background: #2c64a9;
    color: white;
}

.btn-primary:hover {
    background: #1e4c7f;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #2c64a9;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}


/* Modern form input styling */
.form-control,
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    background: white;
    color: #333;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-control:focus,
.form-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #2c64a9;
    box-shadow: 0 0 0 3px rgba(44, 100, 169, 0.1);
}

.form-control::placeholder,
.form-input::placeholder,
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder {
    color: #999;
}


/* Form spacing and layout */
.form-group {
    margin-bottom: 0.6rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Social login buttons */
.zocial {
    border-radius: 0.375rem !important;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

/* Form container */
#kc-form-login {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

/* Alert messages */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    border: 1px solid;
    font-weight: 500;
}

.alert-success {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0c4a6e;
}

.alert-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0c4a6e;
}


/* Registration page styling */
.btn-default {
    border-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #f8f9fa;
    color: #2c64a9;
    border: 1px solid #ddd;
}

.btn-default:hover {
    background: #e9ecef;
}

/* Registration form compact layout */
#kc-register-form {
    max-height: 80vh;
    overflow-y: auto;
}

#kc-register-form .form-group {
    margin-bottom: 0.75rem;
}

#kc-register-form .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

#kc-register-form .form-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

#kc-register-form .password-requirements {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

#kc-register-form .help-text {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

#kc-register-form .error-message {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}


/* Info wrapper styling */
#kc-info-wrapper {
    background: transparent;
    border-radius: 0.375rem;
    padding: 0;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Registration container */
#kc-registration-container {
    margin: 1.5rem 0 0;
    width: 100%;
    box-sizing: border-box;
}

/* Registration link styling */
#kc-registration {
    margin: 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

#kc-registration span {
    display: inline-block;
    text-align: center;
    border-radius: 0.375rem;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.875rem;
    color: #6b7280;
}

#kc-registration a {
    display: inline-block;
    color: #2c64a9;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 0.25rem;
}

#kc-registration a:hover {
    color: #1e4c7f;
    text-decoration: underline;
}


/* Back to login link styling */
.kc-login-tooltip {
    position: relative;
    display: inline-block;
}

.kc-login-tooltip a {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    color: #2c64a9;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    font-size: 0.875rem;
}

.kc-login-tooltip a:hover {
    color: #1e4c7f;
    background-color: #e9ecef;
}


/* Password toggle button */
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #333;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control,
.password-input-wrapper .form-input,
.password-input-wrapper input[type="password"] {
    padding-right: 3rem;
}

/* Form options styling */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #1e40af;
}

.form-link {
    color: #2c64a9;
    text-decoration: none;
    font-weight: 500;
}

.form-link:hover {
    text-decoration: underline;
}

/* Language selector styling */
#kc-locale {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
}

#kc-locale-dropdown {
    display: inline-block;
}

#kc-locale-dropdown a {
    color: #1e40af;
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    font-weight: 500;
}


/* Flag icons */
#kc-locale-dropdown a[href$="locale=el"]:before,
#kc-locale-dropdown ul li a[href$="locale=el"]:before {
    content: "🇬🇷 ";
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
}

#kc-locale-dropdown a[href$="locale=en"]:before,
#kc-locale-dropdown ul li a[href$="locale=en"]:before {
    content: "🇬🇧 ";
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
}

#kc-locale-dropdown a:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#kc-locale-dropdown ul {
    display: none;
    position: absolute;
    background: white;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    min-width: 120px;
    right: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

#kc-locale-dropdown:hover ul {
    display: block;
}

#kc-locale-dropdown ul li a {
    display: block;
    padding: 0.5rem 1rem 0.5rem 2rem;
    color: #374151;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    text-align: left;
    position: relative;
    font-size: 0.875rem;
}

#kc-locale-dropdown ul li a:hover {
    background: #f9fafb;
    box-shadow: none;
}


/* Responsive design */
@media (max-width: 640px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
    }
    
    .login-title {
        font-size: 1.25rem;
    }
    
    #kc-locale {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
    }
}


/* Additional form styling */
.login-title {
    font-size: 1.5rem;
    color: #111827;
    font-weight: 600;
    margin: 0;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Form spacing */
.form-group {
    margin-bottom: 1.5rem;
}

/* Remember Me checkbox */
.checkbox {
    margin: 1rem 0;
}

/* Page title styling */
#kc-page-title {
    text-align: center;
    font-size: 1.5rem;
    color: #111827;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
}


/* Error and validation styling */
.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.help-text {
    color: #666;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.required {
    color: #ef4444;
    font-weight: bold;
}

/* Input validation states */
input:invalid {
    border-color: #ef4444;
}

input:valid {
    border-color: #10b981;
}

/* Form improvements */
.kc-form-group {
    margin-bottom: 1.5rem;
}

.kc-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kc-input:focus {
    border-color: #1e40af;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}


/* Password requirements styling */
.password-requirements {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Phone help text */
.phone-help {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.75rem;
}


/* Terms and Conditions Page Styling */
.terms-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.terms-content-page {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    max-height: 500px;
    overflow-y: auto;
    line-height: 1.6;
}

.terms-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #1e40af;
}

.terms-header h2 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.last-updated {
    color: #6b7280;
    font-style: italic;
    margin: 0;
    font-size: 0.875rem;
}

.terms-section {
    margin-bottom: 1.5rem;
}

.terms-section h3 {
    color: #111827;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.terms-section p {
    margin-bottom: 0.75rem;
    text-align: justify;
    color: #374151;
}

.terms-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-actions {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.form-actions .kc-form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0;
}

.form-actions input[type="submit"] {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.form-actions input[name="accept"] {
    background-color: #10b981;
    color: white;
}

.form-actions input[name="accept"]:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.form-actions input[name="cancel"] {
    background-color: #ef4444;
    color: white;
}

.form-actions input[name="cancel"]:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}


/* Responsive design for terms page */
@media (max-width: 768px) {
    .terms-page {
        padding: 1rem;
    }
    
    .terms-content-page {
        padding: 1.5rem;
        max-height: 400px;
    }
    
    .terms-header h2 {
        font-size: 1.25rem;
    }
    
    .terms-section h3 {
        font-size: 1rem;
    }
    
    .form-actions .kc-form-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions input[type="submit"] {
        width: 100%;
        max-width: 200px;
    }
}


/* Email verification page spacing */
.login-pf-page {
    padding-bottom: 2rem;
}

.kc-feedback-text {
    margin-bottom: 1rem;
}

.kc-info-wrapper {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.instruction {
    margin-bottom: 1rem;
}

.feedback {
    margin-bottom: 1rem;
}