/* Shared styles for Domain Generator */

:root {
    --color-bg-dark: #222831;
    --color-bg-medium: #393E46;
    --color-accent: #00ADB5;
    --color-text: #EEEEEE;
    --color-text-muted: #d1d5db;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--color-bg-dark);
    min-height: 100vh;
    color: var(--color-text);
    position: relative;
    overflow-x: hidden;
}

/* Animated background grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 173, 181, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 173, 181, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    background: rgba(34, 40, 49, 0.95);
    box-shadow: 0 0 0 1px rgba(0, 173, 181, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

/* Header styles */
.header {
    background: var(--color-bg-medium);
    color: var(--color-text);
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 173, 181, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 173, 181, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--color-accent);
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.header p {
    opacity: 0.9;
    font-size: 1.05em;
    position: relative;
    z-index: 1;
    color: var(--color-text);
}

/* Button styles */
button {
    padding: 14px 28px;
    border: 2px solid rgba(0, 173, 181, 0.4);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(0, 173, 181, 0.15);
    color: var(--color-text);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 173, 181, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-dark);
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.4);
}

.btn-primary:hover:not(:disabled) {
    background: #00c4ce;
    box-shadow: 0 8px 25px rgba(0, 173, 181, 0.5);
}

/* Input styles */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(0, 173, 181, 0.3);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: rgba(57, 62, 70, 0.6);
    color: var(--color-text);
    transition: all 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(0, 173, 181, 0.1), 0 0 20px rgba(0, 173, 181, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* Message styles */
.message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid;
    font-size: 15px;
    line-height: 1.6;
}

.message-success {
    background: rgba(0, 173, 181, 0.15);
    color: var(--color-accent);
    border-color: rgba(0, 173, 181, 0.4);
}

.message-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.message-info {
    background: rgba(0, 173, 181, 0.15);
    color: var(--color-accent);
    border-color: rgba(0, 173, 181, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
}

