* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
        'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
        'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 8px;
    background-color: white;
    overflow: auto;
}

.wrapper {
    width: 80vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    display: flex;
    justify-content: center;
    height: 80px;
}

h3 {
    font-size: medium;
    text-align: center;
}

.swap-sentence {
    font-size: medium;
    text-align: center;
    margin-top: 10px;
}

.swap-sentence a {
    color: gray;
    font-weight: bold;
    text-decoration: none;
}

.link {
    font-size: smaller;
    color: gray;
    text-decoration: none;
    font-weight: bold;
    margin-top: 5px;
}

.link:hover, .swap-sentence a:hover {
    color: #01c878;
}

.form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.input {
    width: 100%;
    font-size: small;
    padding: 10px 12px;
    border: 1px solid gray;
    border-radius: 5px; 
    height: 35px;
}

.input:focus {
    outline: none;
    border-color: #01c878;
}

.input.invalid{
    border-color: red;
}

.input.invalid:focus{
    border-color: red;
}

.error {
    font-size: x-small;
    color: red;
    font-weight: bold;
}

.btn {
    width: 100%;
    padding: 10px 12px;
    text-align: center;
    border: none;
    border-radius: 5px; 
    background-color: gray;
    color: white;
    font-weight: bolder;
}

.btn:hover {
    background-color: #01c878;
    cursor: pointer;
}

.buttons {
    display: flex;
    justify-content: end;
    gap: 10px;
}

.btn-submit {
    padding: 10px 12px;
    text-align: center;
    border: none;
    border-radius: 5px; 
    background-color: #01c878;
    color: white;
    font-weight: bolder;
    margin-top: 20px;
}

.btn-cancel {
    padding: 10px 12px;
    text-align: center;
    border: none;
    border-radius: 5px; 
    background-color: gray;
    color: white;
    font-weight: bolder;
    margin-top: 20px;
}

.btn-submit:hover, .btn-cancel:hover{
    cursor: pointer;
}

@media (min-width:640px) {
	.wrapper {
        width: 50vw;
    }
}

@media (min-width:1024px) {
	.wrapper {
        width: 30vw;
    }
    .h3 {
        font-size: larger;
    }
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.toggle-password:focus {
    outline: none;
}