/* 
 * TimeTrack - מערכת נוכחות עובדים
 * עיצוב מודרני ואטרקטיבי
 */

:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #4895ef;
    --secondary-color: #4cc9f0;
    --accent-color: #f72585;
    --text-color: #2b2d42;
    --text-light: #8d99ae;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --success: #06d6a0;
    --warning: #ffd166;
    --danger: #ef476f;
    --gradient-start: #4361ee;
    --gradient-mid: #3a0ca3;
    --gradient-end: #7209b7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
}

/* ===== בסיס ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
    min-height: 100vh;
    direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

p {
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== רקע ואנימציות ===== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    opacity: 0.95;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255, 255, 255, 0.2)" d="M0,192L48,176C96,160,192,128,288,133.3C384,139,480,181,576,186.7C672,192,768,160,864,144C960,128,1056,128,1152,149.3C1248,171,1344,213,1392,234.7L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x;
    background-size: 1440px 100px;
}

.wave1 {
    animation: wave 30s linear infinite;
    z-index: 1;
    opacity: 0.3;
    animation-delay: 0s;
    bottom: 0;
}

.wave2 {
    animation: wave 25s linear reverse infinite;
    z-index: 2;
    opacity: 0.2;
    animation-delay: -5s;
    bottom: 10px;
}

.wave3 {
    animation: wave 20s linear infinite;
    z-index: 3;
    opacity: 0.1;
    animation-delay: -2s;
    bottom: 20px;
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1440px;
    }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: particles 60s linear infinite;
}

@keyframes particles {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

/* ===== אייקונים צפים ===== */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    animation: float 8s ease-in-out infinite;
    animation-delay: var(--delay);
    top: var(--top);
    left: var(--left);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* ===== מיכל ראשי ===== */
.main-container {
    position: relative;
    z-index: 10;
    padding: 2rem 1rem;
}

/* ===== מידע על המערכת ===== */
.info-section {
    color: var(--white);
    padding: 2rem;
}

.info-content {
    max-width: 600px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    box-shadow: var(--shadow-md);
}

.logo-circle i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(to right, var(--white), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
}

/* ===== תכונות ===== */
.features {
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 1.2rem;
    transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.3rem;
    color: var(--white);
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
}

/* ===== כפתורי קריאה לפעולה ===== */
.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-dark);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== מכשיר התחברות ===== */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-device {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    perspective: 1000px;
}

.device-frame {
    position: relative;
    width: 100%;
    background-color: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 6px rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    /* אנימציית הטלטול בוטלה לפי בקשת המשתמש */
    transform: rotateY(0deg) rotateX(0deg);
    transition: transform var(--transition-normal);
}

.device-screen {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: var(--white);
    border-radius: 30px;
    overflow: hidden;
}

.device-sensors {
    position: absolute;
    top: 20px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 10px;
    background-color: #000;
    border-radius: 10px;
    z-index: 2;
}

.device-home-button {
    position: absolute;
    bottom: 15px;
    right: 50%;
    transform: translateX(50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    z-index: 2;
}
.device-home-button {
   display:none;
}

/* ===== תוכן המסך ===== */
.screen-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light);
}

.app-header {
    padding: 1rem;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.app-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.status-icons {
    display: flex;
    gap: 0.5rem;
}

.app-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.app-logo i {
    font-size: 1.4rem;
}

/* ===== טופס התחברות ===== */
.login-form-container {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.alert-danger {
    background-color: rgba(239, 71, 111, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 71, 111, 0.2);
    border-radius: var(--border-radius-md);
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: all var(--transition-normal);
    color: var(--text-color);
    background-color: var(--white);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.toggle-password {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-option {
    display: flex;
    align-items: center;
}

.remember-option input {
    margin-left: 0.5rem;
    accent-color: var(--primary-color);
}

.forgot-link {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to left, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(to left, var(--primary-dark), var(--primary-color));
}

.login-button i {
    font-size: 0.9rem;
    transition: transform var(--transition-normal);
}

.login-button:hover i {
    transform: translateX(-5px);
}

/* ===== אפשרות ביומטרית ===== */
.biometric-option {
    margin-top: auto;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.divider::before {
    margin-left: 1rem;
}

.divider::after {
    margin-right: 1rem;
}

.biometric-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1rem;
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.biometric-button:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.biometric-button i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* ===== כותרת תחתונה ===== */
.app-footer {
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    background-color: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== רספונסיביות ===== */
@media (max-width: 991.98px) {
    .info-section {
        margin-bottom: 3rem;
    }
    
    .login-device {
        max-width: 320px;
    }
    
    .device-screen {
        height: 550px;
    }
    
    /* שינוי סדר האלמנטים במובייל - טלפון למעלה */
    .row {
        flex-direction: column-reverse;
    }
    
    .login-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .main-container {
        padding: 1rem;
    }
    
    .info-section, .login-section {
        padding: 1rem;
    }
    
    .brand-name {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .feature-item {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-text h3 {
        font-size: 1rem;
    }
    
    .feature-text p {
        font-size: 0.85rem;
    }
    
    .login-device {
        max-width: 340px;
    }
    
    .device-screen {
        height: 610px;
    }
	.device-home-button {
    display: none;
}
}

/* ===== אנימציות נוספות ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}