/* MessageHub – login page */

:root {
    --primary: #3682de;
    --primary-hover: #2b6fc7;
    --primary-light: rgba(54, 130, 222, 0.08);
    --secondary: #868e96;
    --success: #00c853;
    --danger: #ff1744;
    --warning: #ff9800;
    --info: #2196f3;
    --bg: #f8f8f8;
    --surface: #ffffff;
    --card-bg: #ffffff;
    --text: #000000;
    --text-light: #6c757d;
    --text-muted: #adb5bd;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.04);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 20px;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 50%, #e8f0fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.login-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    z-index: 1;
}

.login-wrapper::before,
.login-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-wrapper::before {
    top: 0;
    left: 4px;
    z-index: 0;
    opacity: 0.2;
    transform: translateX(0) scale(0.98);
}

.login-wrapper::after {
    top: 0;
    left: 8px;
    z-index: -1;
    opacity: 0.1;
    transform: translateX(0) scale(0.96);
}

.login-wrapper:hover::before {
    left: 8px;
    opacity: 0.6;
    transform: translateX(0) scale(1);
}

.login-wrapper:hover::after {
    left: 16px;
    opacity: 0.4;
    transform: translateX(0) scale(1);
}

.login-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 20px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-wrapper:hover .login-container {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-header h1 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.brand-header p {
    color: #64748b;
    font-size: 1.125rem;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.75rem;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #334155;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1e293b;
    transition: all 0.2s ease;
}

input[type="text"]::placeholder, input[type="password"]::placeholder {
    color: #94a3b8;
}

input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #3682de;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(54, 130, 222, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #3682de;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(54, 130, 222, 0.25);
}

.btn:hover {
    background: #2b6fc7;
    box-shadow: 0 4px 12px rgba(54, 130, 222, 0.35);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(54, 130, 222, 0.25);
}

.error {
    background: rgba(254, 242, 242, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #dc2626;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(254, 202, 202, 0.5);
    border-left: 4px solid #dc2626;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.security-notice {
    background: #fefce8;
    color: #92400e;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 1px solid #fde047;
    font-size: 0.875rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Floating bottom logo */
.floating-logo {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.floating-logo:hover {
    opacity: 1;
}

.floating-logo-container {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-logo a {
    display: block;
    text-decoration: none;
}

.floating-logo img {
    height: 35px;
    width: auto;
    display: block;
}
    
