* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: linear-gradient(135deg, #0c1a2b, #1f2d42);
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 40px;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 150px;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.5));
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: #1f2d42;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 40px;
    background-image: url('asfalt-dark.png');
    /* Owl-themed background */
    background-size: cover;
}

.registration-panel {
    background-color: #2e3b4f;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #334b6b, #1e2836), url('asfalt-light.png');
    background-blend-mode: overlay;
    position: relative;
    color: #ffffff;
}

.plan-summary {
    text-align: center;
    margin-bottom: 30px;
}

.plan-summary .plan-name {
    color: #f7b42c;
    font-weight: 600;
}

.plan-summary .plan-price {
    font-size: 24px;
    color: #f7b42c;
    font-weight: 600;
}

.plan-design {
    padding: 20px;
    background-color: #334b6b;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #2a3a5a, #1e2836);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #c5d5e4;
    font-size: 16px;
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #536882;
    border-radius: 8px;
    font-size: 16px;
    color: #f4f4f4;
    background-color: #2a3a5a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #f7b42c;
    outline: none;
    box-shadow: 0 0 10px rgba(247, 180, 44, 0.5);
}

.error-message {
    margin-top: 5px;
    font-size: 14px;
    color: #ff6b6b;
    display: none;
}

.email-group .email-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #536882;
    border-radius: 8px;
    background-color: #2a3a5a;
}

.email-wrapper input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    color: #f4f4f4;
    background-color: #2a3a5a;
}

.email-wrapper input:focus {
    border-right: 1px solid #536882;
    outline: none;
}

.email-wrapper .email-domain {
    padding: 12px 16px;
    background-color: #334b6b;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    color: #c5d5e4;
    white-space: nowrap;
}

.create-account-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f7b42c, #e09d28);
    color: #1f2d42;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.create-account-button:hover {
    background: linear-gradient(135deg, #e09d28, #f7b42c);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .plan-summary .plan-price {
        font-size: 20px;
    }

    .input-group label {
        font-size: 14px;
    }

    .input-group input,
    .input-group select {
        font-size: 14px;
        padding: 10px;
    }

    .email-wrapper input {
        padding: 10px;
    }

    .email-wrapper .email-domain {
        padding: 10px 14px;
        font-size: 14px;
    }

    .create-account-button {
        padding: 10px;
        font-size: 14px;
    }
}

.password-strength {
    margin-top: 10px;
}

.password-strength-bar {
    width: 100%;
    height: 10px;
    background-color: #536882;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-bar div {
    height: 100%;
    transition: width 0.3s;
}

.password-strength-bar .weak {
    background-color: #e74c3c;
}

.password-strength-bar .medium {
    background-color: #f1c40f;
}

.password-strength-bar .strong {
    background-color: #2ecc71;
}

.password-strength-message {
    margin-top: 5px;
    font-size: 0.9em;
    color: #ffffff;
}

.login-link {
    margin-top: 20px;
    text-align: center;
}

.login-link a {
    color: #f7b42c;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    border: 2px solid #f7b42c;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.login-link a:hover {
    background-color: #f7b42c;
    color: #1f2d42;
}

.error-message {
    color: #ff4d4d;
    font-size: 0.9em;
    margin-top: 5px;
}

.username-availability {
    margin-top: 5px;
    font-size: 0.9em;
    color: #dddddd;
}

.username-availability.available {
    color: #2ecc71;
}

.username-availability.unavailable {
    color: #e74c3c;
}

.promo-message.error {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.promo-message.error .promo-icon {
    margin-right: 1rem;
    font-size: 20px;
}

.promo-message.error .promo-close {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: inherit;
    margin-left: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.promo-message.error .promo-close:hover {
    opacity: 1;
}

.total-price-container {
    background-color: #0c1a2b;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    text-align: center;
    color: #ffffff;
}

.total-price-container .total-price-label {
    font-size: 18px;
    font-weight: 600;
    color: #f7b42c;
    margin-bottom: 10px;
    display: block;
}

.total-price-container .total-price-value {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.total-price-container .price-info {
    font-size: 14px;
    color: #dddddd;
}

.btn-apply-promo {
    padding: 0.5rem 1.5rem;
    background-color: #f7b42c;
    color: #1f2d42;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    display: inline-block;
}

.btn-apply-promo:hover {
    background-color: #d89b20;
    transform: translateY(-2px);
}

.btn-apply-promo:active {
    transform: translateY(0);
    background-color: #c4971a;
}

.promo-message.success {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 100%;
}

.promo-message.success .promo-icon {
    margin-right: 1rem;
    font-size: 20px;
}

.promo-message.success .promo-close {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: inherit;
    margin-left: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.promo-message.success .promo-close:hover {
    opacity: 1;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
}

.toast {
    background-color: #1d3b53;
    color: #d6deeb;
    padding: 16px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s ease-out;
    max-width: 400px;
    font-size: 16px;
    position: relative;
}


.toast-avatar {
    margin-right: 15px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.toast-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #f78c6c;
}

.toast-message p {
    margin: 0;
    color: #d6deeb;
    word-wrap: break-word;
    flex-grow: 1;
    max-width: 250px;
}

.toast-close {
    background-color: transparent;
    border: none;
    color: #f78c6c;
    font-size: 22px;
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.toast-close:hover {
    color: #ff5370;
    transform: scale(1.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .toast {
        max-width: 100%;
        font-size: 14px;
        padding: 12px;
    }

    .toast-avatar img {
        width: 50px;
        height: 50px;
    }

    .toast-close {
        font-size: 20px;
    }
}

/* Style for the OTP button */
#send-otp {
    display: inline-block; /* Makes the button inline but block-like */
    padding: 8px 16px; /* Adjusts the button size */
    font-size: 14px; /* Ensures text is legible */
    font-weight: bold; /* Makes the text bold */
    color: #ffffff; /* White text color */
    background: linear-gradient(135deg, #f7b42c, #e09d28); /* Primary blue background */
    border: none; /* Removes border */
    border-radius: 4px; /* Slightly rounded corners */
    cursor: pointer; /* Changes cursor to pointer on hover */
    transition: background-color 0.3s, box-shadow 0.3s; /* Adds smooth hover effects */
    margin-top: 8px; /* Adds spacing from the input field above */
}

#send-otp:hover {
    background-color: #f7b42c; /* Darker blue on hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow on hover */
}

#send-otp:focus {
    outline: none; /* Removes default focus outline */
    box-shadow: 0 0 0 3px f7b42c(0, 123, 255, 0.5); /* Adds a focus ring */
}

#send-otp:disabled {
    background-color: #cccccc; /* Gray background */
    color: #666666; /* Dark gray text */
    cursor: not-allowed; /* Changes cursor to not-allowed */
}
