/* Reset styles for cross-browser compatibility */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a237e; /* Dark blue background matching the logo */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow-x: hidden;
}

/* Container */
.container {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

/* Logo */
.logo {
    margin-bottom: 60px;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1;
}

.seo-text {
    color: white;
    font-weight: 400;
}

.capital-text {
    color: #2196f3;
    font-weight: 400;
}

/* Form */
.input-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.form-group {
    width: 100%;
    max-width: 400px;
}

input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input[type="text"]:focus {
    border-color: #2196f3;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

/* Submit button */
.submit-btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 500;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

/* Responsive design for tablets */
@media (max-width: 768px) {
    .logo {
        font-size: 3rem;
        margin-bottom: 40px;
    }
    
    .container {
        padding: 15px;
    }
    
    input[type="text"] {
        padding: 14px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
        padding: 14px 35px;
        font-size: 15px;
    }
}

/* Responsive design for mobile devices */
@media (max-width: 480px) {
    .logo {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .container {
        padding: 10px;
    }
    
    input[type="text"] {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 14px;
        min-width: 140px;
    }
}

/* Additional styles for cross-browser compatibility */
@supports not (backdrop-filter: blur(10px)) {
    input[type="text"] {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Styles for older browsers */
.no-flexbox .container {
    display: table;
    width: 100%;
    height: 100vh;
}

.no-flexbox .container > * {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    animation: fadeInUp 0.8s ease-out;
}

.input-form {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Message styles */
.message {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: fadeInUp 0.3s ease-out;
}

.message.success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4caf50;
}

.message.error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
}

/* Disabled button styles */
.submit-btn:disabled {
    background: linear-gradient(135deg, #666, #555);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled:hover {
    background: linear-gradient(135deg, #666, #555);
    transform: none;
    box-shadow: none;
}
