/* Pilot Version 10
* (c) Laurent Groult | Air4.media 2007-2025
* pilot/assets/css/login.css 10.06
*/

:root {
    --air4-cyan: #00BCD4;
    --air4-cyan-dark: #0097A7;
    --air4-cyan-light: #B2EBF2;
    --air4-gray: #7A8B99;
    --air4-dark: #1A1F25;
    --air4-light: #F8FAFB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 20px;
}

.login-container {
    width: 100%;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(0, 0, 0, 0.06);
    animation: slideUp 0.5s ease;
}

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

.card-header-custom {
    margin-bottom: 36px;
}

.header-with-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    height: 56px;
    width: 56px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 188, 212, 0.2));
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: drop-shadow(0 4px 16px rgba(0, 188, 212, 0.4));
    transform: rotate(5deg) scale(1.05);
}

.header-text {
    flex: 1;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--air4-dark);
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--air4-dark) 0%, var(--air4-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 15px;
    color: var(--air4-gray);
    margin: 0;
}

.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 24px;
    padding: 14px 18px;
    font-size: 14px;
}

.alert-danger {
    background: #FEE;
    color: #C33;
}

.alert-success {
    background: #EFE;
    color: #393;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--air4-light);
    padding: 6px;
    border-radius: 12px;
}

.tab-pill {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--air4-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-pill:hover::before {
    left: 100%;
}

.tab-pill.active {
    background: white;
    color: var(--air4-cyan);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.15);
}

.tab-content-custom {
    position: relative;
}

.tab-pane-custom {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane-custom.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group-custom {
    margin-bottom: 20px;
}

.form-group-custom label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--air4-dark);
    margin-bottom: 8px;
}

.form-control-custom {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E8ECF0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    color: var(--air4-dark);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--air4-cyan);
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.form-control-custom::placeholder {
    color: #C4CDD5;
}

.form-text-muted {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--air4-gray);
}

.password-requirements {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--air4-light);
    border-radius: 10px;
}

.password-requirements small {
    display: block;
    font-weight: 600;
    color: var(--air4-dark);
    margin-bottom: 8px;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.password-requirements li {
    font-size: 13px;
    color: var(--air4-gray);
    margin-bottom: 4px;
}

.btn-primary-custom {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 188, 212, 0.3);
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary-custom:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.divider {
    text-align: center;
    margin: 28px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E8ECF0;
}

.divider span {
    position: relative;
    background: white;
    padding: 0 16px;
    font-size: 13px;
    color: var(--air4-gray);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    border: 2px solid #E8ECF0;
    border-radius: 12px;
    background: white;
    color: var(--air4-dark);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-google:hover {
    border-color: var(--air4-cyan);
    background: rgba(0, 188, 212, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--air4-dark);
    text-decoration: none;
}

.forgot-description {
    text-align: center;
    color: var(--air4-gray);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.recaptcha-notice {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--air4-gray);
}

@media (max-width: 768px) {
    .login-card {
        padding: 36px 28px;
        border-radius: 16px;
    }
    
    .brand-logo {
        height: 48px;
        width: 48px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .header-with-logo {
        gap: 12px;
    }
}

.spinner-border-sm {
    width: 14px;
    height: 14px;
    border-width: 2px;
}
.sms-consent-text {
    background: #f8f9fa;
        border: 1px solid #e8ecf0;
        font-size: 13px;
        color: var(--air4-gray);
        line-height: 1.5;
}
.sms-consent-text ul {
    margin-bottom: 0.5rem;
        padding-left: 1.5rem;
}
.sms-consent-text li {
    margin-bottom: 0.25rem;
}
.form-check {
    padding-left: 1.5em;
        margin-bottom: 0.5rem;
}
.form-check-input {
    width: 1.25em;
        height: 1.25em;
        margin-top: 0.125em;
        cursor: pointer;
}
.form-check-label strong {
    color: var(--air4-dark);
        font-size: 14px;
}
