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

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header {
    margin-bottom: 3rem;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-text {
    text-align: center;
    flex: 1;
}

header h1 {
    font-size: 2.53rem;
    font-weight: 700;
    margin-bottom: 0px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.12rem;
    opacity: 0.9;
}

.auth-button {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-top: 1px solid rgba(135, 206, 235, 0.8);
    border-left: 1px solid rgba(135, 206, 235, 0.8);
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    border-right: 1px solid rgba(52, 152, 219, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.4), 0 2px 8px rgba(135, 206, 235, 0.2);
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.5), 0 4px 12px rgba(135, 206, 235, 0.3);
    border-top-color: rgba(135, 206, 235, 0.9);
    border-left-color: rgba(135, 206, 235, 0.9);
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25), 0 10px 20px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
}

.form-container h2 {
    font-size: 1.62rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.url-preview {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #c0c0c0;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.99rem;
    transition: border-color 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.url-preview:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.base-url {
    color: #6c757d;
    font-weight: 500;
    font-size: 1.29rem;
}

#slug {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.29rem;
    font-weight: 600;
    color: #333;
    flex: 1;
}

#slug::placeholder {
    background: linear-gradient(90deg, #87CEEB 0%, #DDA0DD 25%, #ffffff 50%, #DDA0DD 75%, #9370DB 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 700;
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0% {
        background-position: -200% 0;
    }
    50% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes slide {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

.help-text {
    color: #6c757d;
    font-size: 0.81rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-top: 1px solid rgba(135, 206, 235, 0.9);
    border-left: 1px solid rgba(135, 206, 235, 0.9);
    border-bottom: 1px solid rgba(135, 206, 235, 0.4);
    border-right: 1px solid rgba(135, 206, 235, 0.4);
    border-radius: 8px;
    font-size: 0.99rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4), 0 2px 8px rgba(135, 206, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5), 0 4px 12px rgba(135, 206, 235, 0.3);
    border-top-color: rgba(135, 206, 235, 1);
    border-left-color: rgba(135, 206, 235, 1);
}

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

footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    margin-top: auto;
}

/* Contact Form Styles */
.contact-form {
    display: none;
}

.contact-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: block;
    padding: 0.75rem;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.file-input-label:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.preview-image {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .header-text {
        text-align: center;
    }
    
    header h1 {
        font-size: 2.3rem;
        word-break: break-word;
    }
    
    header p {
        font-size: 1.15rem;
        word-break: break-word;
    }
    
    .auth-button {
        align-self: center;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .form-container {
        padding: 1.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .url-preview {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        overflow: hidden;
        max-width: 100%;
    }
    
    .base-url {
        flex-shrink: 0;
        margin-bottom: 0;
        font-size: 0.85rem;
    }
    
    #slug {
        font-size: 0.85rem;
        min-width: 0;
        max-width: 150px;
    }
    
    .form-group input,
    .form-group textarea {
        box-sizing: border-box;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2.01rem;
    }
    
    header p {
        font-size: 1.035rem;
    }
    
    .auth-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    #slug {
        max-width: 120px;
        font-size: 0.8rem;
    }
    
    .base-url {
        font-size: 0.8rem;
    }
}