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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 25%, #2d2d2d 50%, #1a1a1a 75%, #0f0f0f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
    background-attachment: fixed;
}
/*
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(251, 146, 60, 0.1) 0%, transparent 30%);
    pointer-events: none;
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
*/

.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.logo-subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    line-height: 1.35;
}

.logo-subtitle-main {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo-subtitle-note {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
}

.logo-subtitle-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.logo-subtitle-note a:hover {
    color: #d1d5db;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 12px;
    color: #e5e7eb;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
}

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

.password-input-wrap input[type="password"],
.password-input-wrap input[type="text"] {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.08);
}

.password-toggle.is-active {
    color: #60a5fa;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 0 0 1px rgba(59, 130, 246, 0.5),
        0 0 24px rgba(59, 130, 246, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

input::placeholder {
    color: #6b7280;
    transition: opacity 0.3s ease;
}

input:focus::placeholder {
    opacity: 0.7;
}

.login-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    box-shadow: 
        0 8px 16px rgba(59, 130, 246, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.login-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 16px 32px rgba(59, 130, 246, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3);
}

.login-btn:hover::after {
    opacity: 0.1;
}

.login-btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

.login-btn:disabled {
    opacity: 0.7;
    transform: none !important;
    cursor: not-allowed;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

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

.btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.login-btn:hover .btn-icon {
    transform: translateX(4px);
}

.agreement-text {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    margin: 12px 0 0 0;
    line-height: 1.4;
}

.agreement-text a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.agreement-text a:hover {
    color: #d1d5db;
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-link:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.app-link svg {
    transition: transform 0.3s ease;
}

.app-link:hover svg {
    transform: translateX(2px);
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.divider span {
    padding: 0 16px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kodari-login-btn {
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    backdrop-filter: blur(20px);
    margin-bottom: 8px;
}

.kodari-login-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(59, 130, 246, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.kodari-login-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.kodari-login-btn img {
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.kodari-login-btn:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 16px;
    }
    
    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .logo {
        font-size: 2.25rem;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .login-card {
        padding: 28px 20px;
        border-radius: 16px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
    }
    
    .login-header {
        margin-bottom: 28px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    input[type="text"],
    input[type="password"] {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .login-btn {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    
    .app-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 24px 16px;
    }
    
    .logo {
        font-size: 1.75rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    input[type="text"],
    input[type="password"] {
        padding: 12px 14px;
    }
    
    .login-btn {
        padding: 14px 18px;
        gap: 8px;
    }
}

.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.notification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.notification-content {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
}

.notification-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.05);
}

.notification-body {
    padding: 24px;
}

.notification-message {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    white-space: pre-wrap;
}

.notification-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.notification-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.notification-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.notification-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.notification-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.notification-btn:hover::before {
    left: 100%;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.notification-type-info .notification-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.notification-type-success .notification-header {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.notification-type-warning .notification-header {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.notification-type-error .notification-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
}

@media (max-width: 768px) {
    .notification-content {
        width: 95%;
        margin: 0 auto;
    }
    
    .notification-header {
        padding: 16px 20px;
    }
    
    .notification-body {
        padding: 20px;
    }
    
    .notification-footer {
        padding: 12px 20px 20px;
    }
    
    .notification-title {
        font-size: 16px;
    }
    
    .notification-message {
        font-size: 15px;
    }
}


.auth-info {
    margin-top: 20px;
    text-align: center;
}

.auth-title {
    font-size: 18px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 8px;
}

.auth-description {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 0;
}

.auth-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #22c55e;
}

.auth-notice svg {
    flex-shrink: 0;
    color: #22c55e;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

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

.login-btn.loading {
    position: relative;
    pointer-events: none;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.demo-divider {
    position: relative;
    text-align: center;
    margin: 24px 0 16px;
}

.demo-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.demo-divider span {
    background: rgba(18, 18, 18, 0.9);
    padding: 0 16px;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    position: relative;
}

.demo-test-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.demo-test-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.demo-test-btn:hover::before {
    left: 100%;
}

.demo-test-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.demo-test-icon {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.demo-test-btn:hover .demo-test-icon {
    background: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.demo-test-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.demo-test-title {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.2;
}

.demo-test-subtitle {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.demo-test-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.demo-test-btn:hover .demo-test-arrow {
    color: #3b82f6;
    transform: translateX(2px);
}

@media (max-width: 480px) {
    .demo-test-btn {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .demo-test-icon {
        width: 32px;
        height: 32px;
    }
    
    .demo-test-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .demo-test-title {
        font-size: 13px;
    }
    
    .demo-test-subtitle {
        font-size: 11px;
    }
    
    .demo-test-arrow {
        width: 20px;
        height: 20px;
    }
    
    .demo-test-arrow svg {
        width: 14px;
        height: 14px;
    }
}
