/* Basic Bootstrap-like styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9fafa;
    padding: 20px;
}

.logo {
    display: block;
    height: 50px;
    margin: 0 auto 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

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

input[type="text"], input[type="email"], input[type="password"] {
    width: calc(100% - 30px);
    padding: 10px;
    margin-bottom: 2px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

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

.subdomain-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.subdomain-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subdomain-inline input[type="text"] {
    width: 200px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.subdomain-inline label {
    margin: 0;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

.toggle-password {
    position: relative;
    display: inline-block;
    margin-left: -20px;
    cursor: pointer;
    vertical-align: middle;
}

.toggle-password i {
    font-size: 14px;
    color: #6c757d;
}

.input-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding-right: 30px;
}

.tooltip-icon {
    margin-left: 10px;
    cursor: pointer;
    color: #6c757d;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    height: 100%;
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    background-color: #333;
    color: #fff;
    padding: 5px;
    text-align: left;
    border-radius: 5px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: normal;
}

.input-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent #333 transparent transparent;
}

.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
}

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

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.input-requirements {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
    margin-bottom: 10px;
}

.terms-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 5px;
}

.terms-container label {
    margin: 0;
    line-height: 1.5;
}

/* Mobile-specific adjustments */
@media only screen and (max-width: 768px) {
    body {
        font-size: 18px;
        padding: 15px;
    }

    .logo {
        height: 20vh;
    }

    h1 {
        font-size: 4vh;
    }

    form {
        padding: 20px;
        max-width: 100%;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    }

    label {
        font-size: 2vh;
    }

    input[type="text"], input[type="email"], input[type="password"] {
        font-size: 2.5vh;
        padding: 5vh;
    }

    button {
        font-size: 3vh;
        padding: 5vh;
    }

    .flash-message {
        font-size: 2vh;
    }

    .input-requirements {
        font-size: 2vh;
    }

    .terms-container label {
        font-size: 2vh;
    }
}

