/* Base styles */
:root {
    --primary-color: #667eea; /* Namesdao gradient start color */
    --secondary-color: #764ba2; /* Namesdao gradient end color */
    --accent-color: #764ba2;
    --text-color: #2d3748;
    --light-gray: #f7fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #718096;
    --success-color: #48bb78;
    --error-color: #e53e3e;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    width: 100%;
}

/* Header styles */
header {
    background-color: white;
    color: var(--text-color);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--medium-gray);
}

header .logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

header .logo img {
    height: 40px;
    margin-right: 10px;
}

header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

/* Main content styles */
main {
    padding: 48px;
}

h2 {
    color: var(--text-color);
    margin-bottom: 16px;
    font-size: 2.5rem;
    font-weight: 700;
}

.subtitle {
    color: var(--dark-gray);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

p {
    margin-bottom: 20px;
}

/* Form styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 16px;
}

input[type="email"]:focus,
input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

small {
    display: block;
    margin-top: 5px;
    color: var(--dark-gray);
    font-size: 12px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Message styles */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* Success page styles */
.success-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 60px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.info-box {
    background-color: var(--light-gray);
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.button-container {
    margin-top: 30px;
}

.btn-back {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-back:hover {
    background-color: var(--secondary-color);
}

/* Footer styles */
footer {
    background-color: white;
    padding: 24px;
    text-align: center;
    color: var(--dark-gray);
    font-size: 14px;
    border-top: 1px solid var(--medium-gray);
}

footer p {
    margin-bottom: 5px;
}

/* Responsive styles */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    header {
        padding: 15px;
    }
    
    main {
        padding: 20px;
    }
    
    .btn-submit {
        width: 100%;
    }
}
