/**
 * Agent Meeting - Login Page Stylesheet
 * @package    Agent_Meeting
 * @copyright  2025 MakeAI
 */

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --teams: #5b5fc7;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5b5fc7 100%);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

* { 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-bg);
    background-attachment: fixed;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    margin: 0;
}

/* Animated background shapes */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 15s ease-in-out infinite;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-30px) rotate(5deg); 
    }
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
}

.login-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
}

.login-logo {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    border: 3px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.login-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
}

.login-body {
    padding: 2.5rem 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.feature-item:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.feature-content {
    flex: 1;
}

.feature-title {
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0;
}

.btn-microsoft {
    background: white;
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-microsoft:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: var(--primary);
    color: var(--primary);
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(139,92,246,0.05));
}

.btn-microsoft i {
    font-size: 1.4rem;
}

.login-footer {
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    text-align: center;
    border-top: 1px solid var(--gray-100);
}

.login-footer p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

.security-badge i {
    font-size: 1rem;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
    body {
        padding: 1.25rem;
    }
    
    .login-container {
        max-width: 420px;
    }
    
    .login-header {
        padding: 2rem 1.5rem;
    }
    
    .login-logo {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-subtitle {
        font-size: 0.95rem;
    }
    
    .login-body {
        padding: 2rem 1.5rem;
    }
    
    .feature-item {
        padding: 0.875rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon i {
        font-size: 1.1rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    body {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    body::before,
    body::after {
        display: none; /* Hide animated shapes on mobile for better performance */
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .login-card {
        border-radius: 20px;
    }
    
    .login-header {
        padding: 1.75rem 1.25rem;
    }
    
    .login-logo {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }
    
    .login-title {
        font-size: 1.35rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .login-body {
        padding: 1.75rem 1.25rem;
    }
    
    .feature-list {
        margin-bottom: 1.75rem;
    }
    
    .feature-item {
        padding: 0.75rem;
        margin-bottom: 0.625rem;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
    }
    
    .feature-icon i {
        font-size: 1rem;
    }
    
    .feature-title {
        font-size: 0.9rem;
    }
    
    .feature-desc {
        font-size: 0.8rem;
    }
    
    .btn-microsoft {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.625rem;
    }
    
    .btn-microsoft i {
        font-size: 1.25rem;
    }
    
    .login-footer {
        padding: 1.25rem 1rem;
    }
    
    .login-footer p {
        font-size: 0.8rem;
    }
    
    .security-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
    }
}

/* Very small mobile */
@media (max-width: 375px) {
    body {
        padding: 0.75rem;
        padding-top: 1.5rem;
    }
    
    .login-header {
        padding: 1.5rem 1rem;
    }
    
    .login-logo {
        width: 52px;
        height: 52px;
        font-size: 1.35rem;
    }
    
    .login-title {
        font-size: 1.25rem;
    }
    
    .login-body {
        padding: 1.5rem 1rem;
    }
    
    .feature-item {
        gap: 0.75rem;
    }
}

/* Landscape orientation fixes */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        align-items: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .login-header {
        padding: 1.5rem 1.5rem;
    }
    
    .login-logo {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .login-title {
        font-size: 1.25rem;
    }
    
    .login-subtitle {
        font-size: 0.85rem;
    }
    
    .login-body {
        padding: 1.5rem;
    }
    
    .feature-list {
        margin-bottom: 1.25rem;
    }
    
    .feature-item {
        padding: 0.625rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-item:hover {
        transform: none;
    }
}

/* ==================== Alert Messages ==================== */

.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid;
    font-size: 0.95rem;
    animation: shake 0.5s;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

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

.login-container {
    animation: fadeIn 0.5s ease-out;
}

.feature-item {
    animation: fadeIn 0.5s ease-out backwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
