:root {
    --primary: #8886f0;
    --secondary: #6e6cd8;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--dark) 60%, var(--primary));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light);
    margin-top:10vh;
}

.container {
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.logo {
    width: 180px;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.access-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
}

input {
    width: 100%;
    padding: 1rem;
    padding-left: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

button {
    background: var(--primary);
    color: var(--light);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(136, 134, 240, 0.4);
}

.error-message {
    color: #ff6b6b;
    margin-top: 1rem;
    display: none;
}

.footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1.5rem;
    }
}

#previewContent {
    display: none;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

#previewFrame {
    width: 100%;
    height: 100%;
    border: none;
    margin-top: 40px;
}

.close-preview {
    position: absolute;
    top: 5px;
    right: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.preview-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-size: 0.9rem;
    font-weight: 500;
}

.remember-device {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.remember-device:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.remember-device input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.remember-device label {
    cursor: pointer;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1002;
    opacity: 0.05;
    transform: rotate(-30deg);
}

.watermark-text {
    font-size: 6vw;
    font-weight: 200;
    color: #8886f0;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.authorized-projects {
max-width: 800px;
margin: 2rem auto;
padding: 1.5rem;
background: rgba(255, 255, 255, 0.05);
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.1);
}

.authorized-projects h2 {
color: white;
margin-bottom: 1.5rem;
font-size: 1.4rem;
}

.project-card {
background: rgba(138, 134, 240, 0.1);
border: 1px solid rgba(138, 134, 240, 0.2);
border-radius: 8px;
padding: 1.2rem;
margin-bottom: 1rem;
transition: all 0.3s ease;
display: flex;
justify-content: space-between;
align-items: center;
}

.project-card:hover {
background: rgba(138, 134, 240, 0.15);
border-color: rgba(138, 134, 240, 0.3);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
color: white;
margin: 0;
font-size: 1.1rem;
}

.project-actions {
display: flex;
gap: 10px;
align-items: center;
}

.btn-access {
background: #8a86f0;
color: white;
border: none;
padding: 0.6rem 1.2rem;
border-radius: 6px;
cursor: pointer;
font-weight: 500;
transition: all 0.3s ease;
text-decoration: none;
}

.btn-access:hover {
background: #7571d4;
}

.btn-remove {
background: rgba(255, 59, 59, 0.1);
color: #ff5e5e;
border: 1px solid rgba(255, 59, 59, 0.2);
padding: 0.6rem;
border-radius: 6px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
}

.btn-remove:hover {
background: rgba(255, 59, 59, 0.2);
border-color: rgba(255, 59, 59, 0.3);
}

.project-link {
text-decoration: none;
display: block;
}

.preview-bar {
            background-color: #8886f0;
            color: white;
            text-align: center;
            padding: 12px 0;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 9999;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            font-size:14px;
        }
        
        .preview-bar a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        
        .preview-bar a:hover {
            text-decoration: underline;
            opacity: 0.9;
        }